Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/calcuis/suko-generator
suko logic
https://github.com/calcuis/suko-generator
generator suko
Last synced: about 1 month ago
JSON representation
suko logic
- Host: GitHub
- URL: https://github.com/calcuis/suko-generator
- Owner: calcuis
- License: mit
- Created: 2023-08-18T05:28:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-09T21:33:13.000Z (11 months ago)
- Last Synced: 2024-11-15T18:08:59.074Z (about 2 months ago)
- Topics: generator, suko
- Language: Python
- Homepage: https://pypi.org/project/suko/
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## suko
Suko (a modified Sudoku game) is a popular logic-based number-placement puzzle where the objective is to fill a 3x3 grid with digits that compose the grid (often called regions or boxes) contain all of the digits from 1 to 9 without repetition.
Base position:
| 1 | 2 | 3 |
|:-:|:-:|:-:|
| 4 | 5 | 6 |
| 7 | 8 | 9 |Present as array: [1, 2, 3, 4, 5, 6, 7, 8, 9]
This generator is able to generate a random pattern (digits) with sums and color hints.
### install via pip:
```
pip install suko
```
### check user manual:
```
suko -h
```
### execute generator:
```
suko g
```#### output example
Random Pattern (Answer): [8, 2, 3, 6, 7, 9, 5, 1, 4]
Sums: [23, 21, 19, 21]
Color Range (Green, Orange, Yellow): (2, 4, 3)
Color Pattern: [2, 7, 5, 9, 1, 3, 4, 8, 6]
Green : 7
Orange: 22
Yellow: 16
#### how to read the output above
Random pattern as possible answer (or seed):
| 8 | 2 | 3 |
|:-:|:-:|:-:|
| 6 | 7 | 9 |
| 5 | 1 | 4 |Color pattern filled as:
| O | G | O |
|:-:|:-:|:-:|
| Y | O | Y |
| G | Y | O |#### full review mode:
```
suko f
```#### play mode (hidden seed):
```
suko p
```#### typescript version with webui
Repo:
https://github.com/calcuis/suko
#### try it out via:
https://suko.calcuis.us