Script for solving nonograms, particularly Picross puzzles