https://github.com/socrad/yesgram
Package to solve nonograms(=picross=griddlers)
https://github.com/socrad/yesgram
nonogram-solver
Last synced: 5 months ago
JSON representation
Package to solve nonograms(=picross=griddlers)
- Host: GitHub
- URL: https://github.com/socrad/yesgram
- Owner: Socrad
- License: mit
- Created: 2024-03-06T02:24:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T03:42:57.000Z (about 2 years ago)
- Last Synced: 2025-04-30T08:12:41.897Z (about 1 year ago)
- Topics: nonogram-solver
- Language: Go
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Package to solve nonograms (= picross = griddlers)
Example main.go
package main
import "github.com/Socrad/yesgram"
func main() {
rowHints := [][]int{{2, 2}, {2, 3}, {3}, {3, 5}, {1, 9, 1}, {1, 13}, {7, 5}, {3, 3}, {2, 1, 3}, {2, 3}, {2, 2}, {1, 2, 2}, {1, 2, 2, 2}, {2, 11}, {5, 5}}
columnHints := [][]int{{2, 3}, {2, 1, 2}, {3, 2}, {1, 5, 1}, {7, 2}, {4, 4}, {3, 3}, {3, 1}, {3, 1, 3}, {3, 5}, {7, 2, 2}, {9, 2}, {3, 6, 2}, {2, 6}, {3, 5}}
game := yesgram.NewGame(rowHints, columnHints)
game.Solve()
game.ShowBoard()
}