To run this game, follow these steps:
-
Ensure that you have Java installed on your system. To check whether Java is installed, use the following command:
java --version
-
Clone this repository by executing the following command:
git clone https://github.com/elyeandre/simple-maze-game
-
Inside the simple-maze-game folder, compile all the classes located in the src directory. This will place the compiled files into the bin folder:
cd simple-maze-game
javac -d bin src/**/*.java
-
Inside of bin folder, execute the following command to create a JAR file named
mygame.jar
:cd bin
jar cvfm mygame.jar MANIFEST.MF .
-
You can now run the game using the following command:
java -jar mygame.jar
-
Alternatively, you can use this single command to download and run the game directly:
wget -qO- https://raw.githubusercontent.com/elyeandre/simple-maze-game/main/install_game.sh | bash