Viet281101 / Gomoku

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

Home Page:https://viet281101.github.io/Gomoku/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://viet281101.github.io/Gomoku/

License:MIT License


Languages

Language:TypeScript 80.9%Language:Python 15.9%Language:Shell 0.9%Language:Dockerfile 0.8%Language:CSS 0.5%Language:HTML 0.5%Language:JavaScript 0.4%Language:Procfile 0.1%