Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tianyishi2001/sudoku-tui
Play sudoku on the command line
https://github.com/tianyishi2001/sudoku-tui
Last synced: 18 days ago
JSON representation
Play sudoku on the command line
- Host: GitHub
- URL: https://github.com/tianyishi2001/sudoku-tui
- Owner: TianyiShi2001
- License: mit
- Created: 2020-10-08T00:52:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-10-16T20:15:24.000Z (about 4 years ago)
- Last Synced: 2024-10-14T16:12:01.909Z (about 1 month ago)
- Language: Rust
- Size: 722 KB
- Stars: 18
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sudoku-tui
[![crates.io](https://img.shields.io/crates/d/sudoku-tui.svg)](https://crates.io/crates/sudoku-tui)
[![crates.io](https://img.shields.io/crates/v/sudoku-tui.svg)](https://crates.io/crates/sudoku-tui)
[![crates.io](https://img.shields.io/crates/l/sudoku-tui.svg)](https://crates.io/crates/sudoku-tui)Play sudoku on the command line.
![example.png](https://github.com/TianyiShi2001/sudoku-tui/raw/main/img/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 `` or press `` to obtain a hint. `Ctrl/Cmd + Z` to undo (unfortunately, due to [technical limitations](https://github.com/gyscos/cursive/issues/516), `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
- [X] Basic logic
- [X] Display `You win`
- [X] Undo/Redo (`Ctrl + Shift + Z` binding not yet)
- [ ] Limit number of steps?
- [ ] Score calculation & difficulty selection
- [ ] history?
- [ ] time taken
- [ ] Hex