ChatDev/WareHouse/gomokugameArtExample_THUNLP_20230831122822/manual.md
2024-01-25 13:51:47 +08:00

1.6 KiB

manual.md

# Gomoku Game

A fun and interactive Gomoku game developed using Python and Pygame.

## Quick Install

Before you can run the game, you need to install Python and Pygame. Here are the steps to do so:

1. Install Python: Download and install the latest version of Python from the official website: https://www.python.org/downloads/

2. Install Pygame: Once Python is installed, open your terminal or command prompt and type the following command to install Pygame:

```bash
pip install pygame

🤔 What is this?

Gomoku, also known as Five in a Row, is a strategy board game. Two players alternate turns placing a piece of their color on an empty intersection. The winner is the first player to form an unbroken chain of five pieces horizontally, vertically, or diagonally.

This application is a digital version of the Gomoku game. It has a simple and user-friendly interface, and it allows two players to play the game on the same device.

🎮 How to Play

  1. Run the game: Navigate to the directory where the game files are located and run the following command:
python main.py
  1. The game board will appear on the screen. Player 1 starts the game by clicking on an empty spot on the board to place their piece.

  2. Players take turns placing their pieces on the board. The goal is to be the first to form a line of five pieces horizontally, vertically, or diagonally.

  3. The game ends when one player has formed a line of five pieces, or when all spots on the board have been filled and no player has won. The game will display a message indicating the winner or a draw.

  4. To play again, simply close and rerun the game.

Enjoy the game!