Coder Social home page Coder Social logo

tuidoku's Introduction

Tuidoku

Simple ncurses program to play sudoku in the terminal written entirely in C++

How to Play

Move around the board and insert numbers or pencil-marks according to the keys set in config.h.

How to configure

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.

How to Install

clone this repository then compile using g++ or clang++

Linux

git clone https://github.com/flyingpeakock/tuidoku.git
cd tuidoku/
g++ -Ofast -pthread ./src/*.cpp -lncursesw -o tuidoku

OSX

git clone https://github.com/flyingpeakock/tuidoku.git
cd tuidoku/
clang++ -Ofast -pthread -std=c++11 -stdlib=libc++ ./src/*.cpp -lncursesw -o tuidoku

AUR

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

Screenshots

new game same game mid playing same game state with check big board after autopencil

Troubleshooting

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.

tuidoku's People

Contributors

flyingpeakock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.