Skip to content

cconnett/nonograms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solvers for nonogram puzzles.

There are two solving algorithms.

Iterated deduction

One solver simply applies the elementary deductions that humans would apply:

  • Mark squares that are filled or empty in all remaining possible configurations.
  • Eliminate configurations that conflict with marked squares.

This repeats until there's no change in the truth values. This technique never makes guesses, but it is surprisingly effective.

SMT solving

This technique uses the z3 constraint solver to solve the entire puzzle, which it encodes as an SMT formula and prints a satisfying assignment.

About

Solvers for nonogram puzzles.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages