Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.22 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.22 KB

Sudoku

Fully functional game of Sudoku written in C++ and SFML.

A screenshot from the game

Controls

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).

Building

Build it yourself:

  1. Install dependencies:

    • Arch Linux:
      sudo pacman -S cmake g++
    • Debian / Ubuntu:
      sudo apt-get install cmake g++-14
  2. 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: