English | 简体中文
A python based gobang game.
The game has currently been released version v0.2.1, currently to basically complete the functional goals.
If you find a bug, feel free to write issues and let me know ~ 😉
The game uses pygame as the graphics engine and uses SQLite to record historical games.
The human-computer part of the game is modified from @Xshellye 's open source project GoBang-python-homework.
The game font is the open source font Sarasa-Mono-SC-Nerd.
The game demo has been released on bilibili.
A big thank you to my friends @Charholer and @Vokain for the music as well as the sound support.
Download the (soon to be released) release version, or clone the project locally and run it, as described in the Configuring the Environment section below.
Notice: Currently the game is only written to build scripts for the windows environment!
Note: Make sure that Miniconda or Anaconda is installed on your computer.
Execute the following code in sequence:
git clone https://github.com/JesseSenior/pyGobang
cd pyGobang
conda env create -f environment.yml
conda activate pyGobang_env
Then you can enter the project development environment, if you execute python pyGobang.py
to start the game body.
In addition, you can also configure the environment by executing the following code:
conda create -n "pyGobang_env" `
python=3.10 nomkl black numpy `
pillow pip scipy scikit-image sqlite `
ordered-set pyinstaller `
--no-default-packages -y
conda activate pyGobang_env
pip install pygame
cd script
./build.ps1
Wait for the script to finish and you will get game's binary named "pyGobang.exe" in the root directory of the project.