Simple ncurses program to play sudoku in the terminal written entirely in C++
Move around the board and insert numbers or pencil-marks
according to the keys set in config.h
.
Configuration is done in the config.h file. Documentation for the configuration is in the form of comments in that same file. All configuration must be done before installation. Changing any configuration will require reinstallation.
clone this repository then compile using g++ or clang++
git clone https://github.com/flyingpeakock/tuidoku.git
cd tuidoku/
g++ -Ofast -pthread ./src/*.cpp -lncursesw -o tuidoku
git clone https://github.com/flyingpeakock/tuidoku.git
cd tuidoku/
clang++ -Ofast -pthread -std=c++11 -stdlib=libc++ ./src/*.cpp -lncursesw -o tuidoku
This package can be found as tuidoku-git on the AUR.
paru -S tuidoku-git
# If you wish to edit config.h
vim ~/.cache/paru/clone/tuidoku-git/config.h
paru -S --rebuild tuidoku-git
-lncursesw flag is required to link ncurses.h
-Ofast is recommended to speed up puzzle generation but is not required.
To run this program from any directory move the generated tuidoku file to anywhere in your $PATH.
ln -s tuidoku ~/.local/bin/tuidoku
If the compiler cannot find ncurses.h you need to make sure that ncurses is installed. If you cannot find ncurses in your package manager it might be called something like libcurses or curses instead. If it still doesn't work use the -lncurses flag instead of -lncursesw when compiling.