Skip to content

A fast and interactive Gomoku game combining Python and C++ for advanced AI and smooth gameplay. Features single-player and multiplayer modes, heuristic evaluations, and undo/suggestion options.

Notifications You must be signed in to change notification settings

ivotints/gomoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gomoku Game

This repository contains an implementation of the Gomoku game, combining Python and C++ components to offer a fast and interactive experience.

Overview

Build and Run

Compiling C++ Components

Use the provided Makefile to compile the performance-critical C++ modules:

make

Running the Python Game

  1. Install dependencies:
pip install -r requirements.txt
  1. Run the game:
python3 main.py

CLI Options

  • Multiplayer: Use the flag -p 2 to enable two-player mode.
  • Depth: Use -D 10 to set the AI search depth to 10.
  • Color: Use -c white if you want to play as white.

Demo

Below is a quick demonstration of gameplay: Gameplay Showcase

Game Features

  • Single-player & Multiplayer Modes: Enjoy different modes using human players or AI.
  • Bot Player: The AI uses a minimax algorithm (new_bot_play) with advanced board evaluation.
  • Heuristic Evaluations: Leverages bitwise_heuristic and star_heuristic for move scoring.
  • Undo & Suggestion: The UI provides undo options (draw_undo_button) and move suggestions (draw_suggestion_button).

Controls

  • Place a Move: Click on the board.
  • Undo a Move: Click the "UNDO" button.
  • Move Suggestions: Toggle suggestions using the question mark button.

About

A fast and interactive Gomoku game combining Python and C++ for advanced AI and smooth gameplay. Features single-player and multiplayer modes, heuristic evaluations, and undo/suggestion options.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages