https://github.com/sondregj/hitori
🗻 Solver for Hitori Puzzles
https://github.com/sondregj/hitori
functional hitori hitori-solver typescript
Last synced: 7 days ago
JSON representation
🗻 Solver for Hitori Puzzles
- Host: GitHub
- URL: https://github.com/sondregj/hitori
- Owner: sondregj
- License: mit
- Created: 2019-09-11T01:31:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T10:34:09.000Z (over 2 years ago)
- Last Synced: 2025-05-12T08:31:36.569Z (7 days ago)
- Topics: functional, hitori, hitori-solver, typescript
- Language: TypeScript
- Homepage: https://hitori.sondregjellestad.space
- Size: 436 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🧩
HitoriA Hitori puzzle solver
A simple Hitori solver, implemented with TypeScript.
## Usage
```javascript
import { HitoriBoard, solve } from 'hitori'const board = HitoriBoard.from2DArray([
[1, 4, 2, 5, 3],
[4, 3, 1, 4, 6],
[3, 5, 5, 3, 5],
[4, 2, 4, 6, 1],
[6, 4, 2, 1, 2],
])const [solved, iterations] = solve({ board })
```The solver function returns an array with the final solution, if found, and an array of all the intermediate iterations.
## License
MIT © 2019 Sondre Gjellestad