Fully functional game of Sudoku written in C++ and SFML.
Controls are simple - press a square, choose a digit and then press a number key or a button on the right to place it on the board.
Hidden feature
Pressing SPACE key solves the board. Useful with "Empty Board" mode, when we want to solve an already existing Sudoku.
Note: all game modes serve a board with one, unambiguous solution. In mode "Empty board", upon finding a solution the result is returned. It is possible to generate multiple solutions (by pressing Undo and solving again).
Build it yourself:
-
Install dependencies:
- Arch Linux:
sudo pacman -S cmake g++
- Debian / Ubuntu:
sudo apt-get install cmake g++-14
- Arch Linux:
-
Build project and run:
bash -c "git clone https://github.com/matihope/Sudoku.git && \
cd Sudoku && \
cmake -B build && \
cmake --build build && \
./build/SudokuByMatihope"
List of attributions:
- SFML
- nlohmann json
- Lato font by Lukasz Dziedzic