A basic tui sudoku game for your shell.
โโโโโโโโโโฌโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโ
โ โ โ 8 9 โ โ Hard โ <- Difficulty
โ 4 9 7 โ โ 6 โ โ 36/81 โ <- Completion in number of cells
โ 2 โ 3 1 โ 7 โ โโโโโโโโโค
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโค โ 01:22 โ <- Elapsed Time
โ 6 โ 9 7 โ 3 โ โโโโโโโโโค
โ 3 โ 5 2 โ โ โ> Edit โ <- Active Mode
โ 7 2 โ 1 3 โ 5 4 โ โ Mark โ
โโโโโโโโโโผโโโโโโโโโผโโโโโโโโโค โ Go โ
โ 2 1 โ 3 7 โ 9 5 โ โโโโโโโโโค
โ 5 โ 9 โ 3 4 โ โ [9] โ <- Preselected Number
โ โ 4 โ 6 1 โ โ 4 / 9 โ <- Completion of preselected Number
โโโโโโโโโโดโโโโโโโโโดโโโโโโโโโ โโโโโโโโโ
The current control scheme adheres to vim-like keybindings and is modal.
-
h, j, k, l
to moveleft, down, up, right
-
H, J, K, L
to move 3 spaces at once -
1-9
to preselect a number -
Modes:
a
to enter Markup modei
to enter Edit modeg
to enter Go mode1-9
to move to block- you then return to the previous mode
A
andI
to enter Edit/Markup mode "once"- do a single edit/mark
- you then return to the previous mode
<esc>
to return to Edit mode
-
<space>
to place/unplace preselected number/mark -
x
to delete a number/mark -
q
to quit
-
Game logic
- Validate Sudokus
- Generate Sudokus
- Difficulties to choose
-
Basic UI
- Basic controls
- Basic rendering
- Centered UI
- Reset terminal state
-
Final UI
- Final controls
- Preselect numbers
- Edit Mode to (re)place numbers
- Markup Mode to mark where numbers could go
- Autoremove marks after placing number in edit mode
- Go Mode to move to blocks 1-9
- Toggle Number/Mark with Space
- Undo/Redo stack
- Colored UI
- Hightlight preselected numbers
- Hightlight preselected markups
- Scoreboard
- Live timer
- Mode indicator
- Difficulty indicator
- Completion information
- Menu
- Difficulty selection
- Highscore section
- Color chooser
- Final controls