Welcome to the Gomoku game! This user manual will guide you on how to install the game and play it.
To install and run the Gomoku game, please follow the steps below:
-
Make sure you have Python installed on your computer. You can download Python from the official website: https://www.python.org/downloads/
-
Open a terminal or command prompt.
-
Navigate to the directory where you have saved the
main.py
andgame.py
files. -
Install the required dependencies by running the following command:
pip install -r requirements.txt
- Once the dependencies are installed, you can start the game by running the following command:
python main.py
Gomoku is a two-player board game played on a 15x15 grid. The objective of the game is to be the first player to get five of their pieces in a row, either horizontally, vertically, or diagonally.
Once you start the game, you will see a 15x15 grid on the screen. Each cell represents a position on the board where you can place your piece.
To make a move, simply click on an empty cell on the board. The game will alternate between the black player and the white player.
If you want to restart the game, click the "Restart" button at the bottom of the screen. This will reset the board and allow you to start a new game.
The game will automatically detect when a player has won. If a player gets five of their pieces in a row, a message box will appear announcing the winner (either black or white). After the game is over, you can click the "Restart" button to start a new game.
Enjoy playing Gomoku!