Skip to content

Online board game for multiplayer (1vs1) or single-player solo with AI -– Gomoku (Five in a Row)

License

Notifications You must be signed in to change notification settings

Viet281101/Gomoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gomoku (Five in a Row)

GitHub code size in bytes Github language count GitHub Created At

Gomoku is a classic strategy board game played by two players. The game is typically played on a 15x15 grid, where players take turns placing black or white stones on the intersections. The objective is to be the first to align five stones in a row horizontally, vertically, or diagonally. The simplicity of the rules contrasts with the game's strategic depth, making it a challenging and engaging pastime.

alt text & alt text & alt text & alt text & alt text

demo_gomoku

Install & Debug

Install project:

git clone https://github.com/Viet281101/Gomoku.git
cd Gomoku/

Backend (Django)

Install Python then:

  • Run virtual environment:
python3 -m venv env
source env/bin/activate
  • Install Django & libraries by using requirements.txt file:
pip install requirements.txt
cd gomoku_backend/
  • Create & Apply migrations:
python manage.py makemigrations game
python manage.py migrate
  • Create Django admin user & add more users:
python manage.py createsuperuser

then

python manage.py create_default_users

or

python manage.py shell < shell.py
  • Run server django:
python manage.py runserver

Frontend (React TypeScript)

  • Use npm to debug:
cd gomoku_frontend/
npm install
npm run dev