https://github.com/pcapurro/gomoku-game
A gomoku game made from scratch with a graphic interface (SFML).
https://github.com/pcapurro/gomoku-game
game gomoku gomoku-engine oriented-object-programming sfml user-interface
Last synced: 2 months ago
JSON representation
A gomoku game made from scratch with a graphic interface (SFML).
- Host: GitHub
- URL: https://github.com/pcapurro/gomoku-game
- Owner: pcapurro
- Created: 2025-08-14T10:43:22.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-08-20T15:46:03.000Z (3 months ago)
- Last Synced: 2025-08-20T17:38:37.670Z (3 months ago)
- Topics: game, gomoku, gomoku-engine, oriented-object-programming, sfml, user-interface
- Language: C++
- Homepage:
- Size: 33.2 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gomoku-game
### « A simple game »
The project has been created for Linux only and requires the following package:
```
libsfml-dev
```
Type `./gomoku-game` or `./gomoku-game --classic` to launch.
Type `./gomoku-game --shell` for a command line interface.
**In both versions**:
The game is following simple rules.
In order to win, you can :
**1** - Align at least 5 stones.
**2** - Capture at least 5 pairs of stones from the other player.
The game paramaters are customizable by defining macros in the Makefile.
At the end of a game, a summary is written in the terminal.
**In classical version**:
Use `LMB` to interact with the grid and place stones.
You can use `Left` and `Right` to navigate in the chronology of the game.
When a game is over, you can use `Enter` to restart the game.
You can use `Escape` to quit the game or simply click the cross in the window.
**In shell version**:
Type the move you want to play using coordinates notation (e.g.: `0;0`, `21;4` ...).
Write `restart` to restart the game or `end` to end it and shut down the program.