Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcapurro/chess-game
A chess game/engine made from scratch using SDL2 and Stockfish.
https://github.com/pcapurro/chess-game
chess chess-engine game oriented-object-programming sdl2 stockfish user-interface
Last synced: 1 day ago
JSON representation
A chess game/engine made from scratch using SDL2 and Stockfish.
- Host: GitHub
- URL: https://github.com/pcapurro/chess-game
- Owner: pcapurro
- Created: 2024-10-12T08:21:02.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-01-22T18:56:59.000Z (17 days ago)
- Last Synced: 2025-01-22T19:41:54.545Z (17 days ago)
- Topics: chess, chess-engine, game, oriented-object-programming, sdl2, stockfish, user-interface
- Language: C++
- Homepage:
- Size: 2.14 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to chess-game!
### Here is my first game project: a feature-complete chess engine and chess game written from scratch, along with a user interface.
The project has been created for Linux only and requires the following packages:
```
libsdl2-dev stockfish
```Use `make` to compile the classic version of the game. Type `./chess-game` to launch.
Use `make shell` to compile a shell version of the game. Type `./shell-chess` to launch.
**In both versions**:
You can specify `--sandbox` to play against yourself. Otherwise, you will play by default against Stockfish (elo randomly set between 1 400 and 2 000).
At the end of a game, a summary is written in algebraic notation in the terminal.
**In classical version**:
Use `LMB` on the right bottom corner to switch the colors of the board, or on the left side of the board to enable/disable the score bar.
You can use `RMB` to enable visual coordinates indicator and `Tab` key to enable visual hints.
Use `LMB` on the right top corner of the window to restart the game. When a game is over, you can also use `Enter`.
You can use `Escape` key to quit the game or simply click the cross in the window.
A secret key sequence can unlock an easter egg if typed during a game.
**In shell version**:
You can specify `--blind-mode` to play without the terminal board.
Type the move you want to play using algebraic notation (e.g.: 'e4', 'e4-e5', 'Bc4', 'Nf3xg5', 'Qh5xf7#').
Write `end` to end the game and shut down the program.
> [!NOTE]
> The chess pieces textures have been downloaded from Wikimedia Commons and are under the Creative Commons license, originally made by the user Cburnett.
>
> All the others assets have been made by myself from scratch using GIMP software.