https://github.com/lassepe/picross.jl
A quick and dirty Julia implementation of a picross solver.
https://github.com/lassepe/picross.jl
Last synced: 3 months ago
JSON representation
A quick and dirty Julia implementation of a picross solver.
- Host: GitHub
- URL: https://github.com/lassepe/picross.jl
- Owner: lassepe
- Created: 2023-06-21T19:37:39.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T11:04:07.000Z (almost 2 years ago)
- Last Synced: 2025-03-05T19:59:33.946Z (3 months ago)
- Language: Julia
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Picross.jl
A quick and dirty Julia implementation of a picross solver.
## Install
Install [julia](https://julialang.org/downloads/). Then from the REPL run:
`] add https://github.com/lassepe/Picross.jl`
## Quick Start
```julia
using Picross
problem = Picross.Problem(;
row_blocks = [
[4],
[1, 4],
[1, 2],
[1, 1, 1],
[1, 1, 1, 1],
[1, 1, 2],
[1, 1, 2],
[1, 4],
[1, 1, 2, 1],
[1, 1, 2, 1],
],
column_blocks = [
[8],
[1],
[1, 1, 2],
[1, 1],
[1, 7],
[1, 3],
[1, 2],
[1, 1],
[2, 1],
[5, 2],
],
)
final_problem_state = Picross.solve(problem)
Picross.show_state(problem, final_problem_state)
```
