Skip to content

Latest commit

 

History

History
67 lines (46 loc) · 1.15 KB

README.md

File metadata and controls

67 lines (46 loc) · 1.15 KB

Gomoku Terminal Game

A fast-paced, high-performance Gomoku game that runs directly in your terminal. This project combines Python for user interactions and C++ for the game engine, with pybind11 used to bridge the two languages.

Prerequisites

Before you start, make sure you have the following installed on your system:

  • Python 3.6 or higher
  • CMake 3.4 or higher
  • A C++ compiler (GCC or Clang)
  • Git

Installation

Follow these steps to install and run the Gomoku game after cloning the repository:

1. Clone the Repository

git clone https://your-repository-url/gomoku.git
cd gomoku

2. Create a Python Virtual Environment (Optional)

python3 -m virtualenv venv
source venv/bin/activate

3. Install Python Dependencies

pip install -r requirements.txt

4. Initialize Submodules

git submodule update --init --recursive

5. Build the Engine and the Display

make

6. Run the Game

./Gomoku

LINTER

1. Copy pre-commit scrip

cp ./pre-commit.example .git/hooks/pre-commit
chmod u+x .git/hooks/pre-commit

2. Format code

./format_code.sh