Skip to content

🐬 Python script which solves Nonogram (Picross) puzzles.

Notifications You must be signed in to change notification settings

jwang541/Picross-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Picross Solver

Short project which solves Nonogram (Picross) puzzles. https://en.wikipedia.org/wiki/Nonogram

To use the solver, download the picross_solver folder.

  1. In the input.txt file, enter the dimensions of the Picross, then the row data, then the column data. Note that spaces and newlines matter. See below for an example.
  2. Run the solve.py file.
  3. The solution will be printed in the output.txt file. "O" represents a filled cell, "." represents an empty cell.

Example Picross puzzle:

alt text

Example input:

alt text

Example output:

alt text

Example solution:

alt text