Skip to content

vasapaun/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku

Screenshots

Main menu Game End

Dependencies and building

This project's only dependency is SDL2.

To install dependencies, the following commands should work, based on your system.

Debian/Ubuntu

sudo apt install libsdl2-dev libsdl2-ttf-dev
make
./sudoku
make clean

Arch Linux

sudo pacman -S sdl2 sdl2_ttf
make
./sudoku
make clean

Windows

Please download sudoku.zip from releases, unzip and run sudoku.exe.

Controls

Navigate the menus and game with arrow keys, or hjkl.

Select the menu item with enter.

Use N or 0 to toggle note mode.

1-9 to fill in a note/cell.

Backspace to clear a cell.

Esc to exit the game.

Generation methods

Computer generation

Computer generation is implemented using Knuth's Algorithm X.

Difficulty sets the number of filled-in cells in the puzzle.

Human generation

Based on the difficulty, the puzzle is randomly picked from a list.

Many thanks to grantm's Sudoku exchange puzzle bank.

These puzzles are graded, so they should more closely match the selected difficulty.

(But you should definitely use my computer-generated puzzles.)

About

Sudoku remake in SDL 2

Resources

Stars

Watchers

Forks

Packages

No packages published