Authors: Adrien Jayat
A chess game in C++ with a colorful CLI.
Implements all the rules defined by the Internal Chess Federation.
This project is using two submodules:
-
the Doxygen Awesome theme for the Doxygen documentation generation tool.
-
the Stockfish chess engine.
First, clone the project and its submodules:
git clone https://gitlab.unistra.fr/jayat/minichess-project
cd minichess-project
git submodule init && git submodule update
Install make
, gcc
, doxygen
and graphviz
with your package manager :
sudo apt update
sudo apt install make gcc doxygen graphviz
sudo pacman -Syu
sudo pacman -S make gcc doxygen graphviz
Install MinGW, CMake and make with Chocolatey, then run the following command in the project root directory:
cmake . -G "MinGW Makefiles"
cmake . -G "Unix Makefiles"
Then, run make
to build the project.
To use the Stockfish engine, you need to build it with the following command:
cd Stockfish/src
make -j profile-build
You can also run make docs
to generate the documentation.
Preview it with firefox docs/html/index.html
for instance.
After building the project, you can run the ./echecs
executable to start the program.
The program accepts the following options:
Option | Description |
---|---|
--engine |
Black are played by the Stockfish engine. |
To test the program, you can run the test-level.sh
script in the tests
directory. For example, to test the level 1, run the following command:
cd tests && bash test-level.sh 1 ../echecs