ChatDev/WareHouse/Gomoku_HumanAgentInteraction_20230920135038/manual.md

2.1 KiB

Gomoku Game User Manual

Welcome to the Gomoku game! This user manual will guide you on how to install the game and play it.

Table of Contents

  1. Installation
  2. Game Rules
  3. Playing the Game
  4. Restarting the Game
  5. Winning the Game

1. Installation

To install and run the Gomoku game, please follow the steps below:

  1. Make sure you have Python installed on your computer. You can download Python from the official website: https://www.python.org/downloads/

  2. Open a terminal or command prompt.

  3. Navigate to the directory where you have saved the main.py and game.py files.

  4. Install the required dependencies by running the following command:

pip install -r requirements.txt
  1. Once the dependencies are installed, you can start the game by running the following command:
python main.py

2. Game Rules

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.

3. Playing the Game

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.

4. Restarting the Game

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.

5. Winning the 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!