#command-line #sudoku #play #game #hint #redo #undo

bin+lib sudoku-tui

Play sudoku on the command line. (TUI interface)

6 releases

0.2.0 Oct 10, 2020
0.1.0 Oct 9, 2020
0.0.4 Oct 9, 2020

#849 in Games

MIT and AGPL-3.0

370KB
577 lines

sudoku-tui

crates.io crates.io crates.io

Play sudoku on the command line.

example.png

Installation

cargo install sudoku-tui

Usage

Run sudoku to start game.

Use arrow keys/mouse wheel/mouse click to navigate. Enter the number 0-9 to fill in. Click <Hint> or press <h> to obtain a hint. Ctrl/Cmd + Z to undo (unfortunately, due to technical limitations, Ctrl/Cmd + Shift + Z is not able to map to "redo", but there's a button for it).

Compatibility

Works on Linux, MacOS and Windows, although you may be unable to use mouse actions on Windows.

Roadmap

  • Basic logic
  • Display You win
  • Undo/Redo (Ctrl + Shift + Z binding not yet)
  • Limit number of steps?
  • Score calculation & difficulty selection
  • history?
  • time taken
  • Hex

Dependencies

~9MB
~160K SLoC