Find development decisions here.
Game of three is a very simple game played between two players.
The game starts with a random number and the players take turns to add one of {-1, 0, 1} to the number and then divide the number by 3.
The player who reaches the number 1 after the division wins the game.
Ensure you have the following tools installed on your machine:
- Docker: Containerization platform for building and sharing applications.
-
Clone the repository:
git clone https://github.com/victorvld/game-of-three.git cd game-of-three
-
Deploy the application:
Build the docker image by running the following command:
docker build -t game-of-three .
Start the application by running the following command:
docker run -p 8080:8080 game-of-three
-
Players GUI
Congratulations! You are now ready to play the game, follow the steps below:
- Connect Player1 to server by clicking on the
Connect
button. - Connect Player2 to server by clicking on the
Connect
button. - Start the game by clicking on the
Start New Game
button either in Player1 or Player 2 GUI. - Select Game Mode by clicking on the
Auto
orManual
button in the player GUI. (Auto mode will automatically make a move for the player) - Make a move by clicking on the
1, 0, -1
button in Player1 or Player2 GUI. - Iterate the steps 4 until the game is over.
- Click on
Reload
to refresh the game and follow the previous steps if you want to play again.