Skip to content

Gomoku Online/Offline game implementation for two players

Notifications You must be signed in to change notification settings

strangecreator/gomoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gomoku Online/Offline

History

Gomoku, also called "Five in a Row", is an abstract strategy board game. It is traditionally played with Go pieces (black and white stones) on a Go board. It is played using a 15×15 board while in the past a 19×19 board was standard. Because pieces are typically not moved or removed from the board, gomoku may also be played as a paper-and-pencil game. The game is known in several countries under different names. From Wikipedia

Rules

Players alternate turns placing a stone of their color on an empty intersection. Black plays first. The winner is the first player to form an unbroken line of five stones of their color horizontally, vertically, or diagonally. In some rules, this line must be exactly five stones long; six or more stones in a row does not count as a win, and is called an overline. If the board is completely filled and no one can make a line of 5 stones, then it will result in a draw. From Wikipedia

Installation

The minimum supported version of python is 3.9.

In the following commands, you need to substitute your python executable path instead of <python>

Firstly clone this repository to your computer:

git clone https://github.com/strangecreator/gomoku
cd gomoku

You need to install required modules:

pip install -r requirements.txt

And then, run main.py in src folder with --interface parameter [console, GUI]:

<python> src/main.py --interface=GUI

But you can also just run binaries. These files are in the bin directory.

Pictures

As the GUI interface started, you can see this window on your screen: Anteroom It is a anteroom page.

Further, you can choose a type of field and specify other characteristics of the game: Menu But, unfortunately, it is possible only in offline mode.

The game itself look like that: Battle Room Players take turns placing pieces to win.

If you want to play online, press Play Online button and as you can see you are on the waiting page: Waiting Room After, you will be redirected to the battle page to play with somebody via net.

License

MIT

About

Gomoku Online/Offline game implementation for two players

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages