Skip to content

matihope/Sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

A simple sudoku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published