Skip to content

shinbatsu/Nonogram-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nonogram solver

What's Nonogram?

Nonograms, also known as Picross, Griddlers, or Japanese crosswords, are logic puzzles in which cells in a grid must be colored or left blank according to numbers given at the side of the grid. These numbers indicate how many unbroken lines of filled-in squares there are in any given row or column. When completed correctly, the puzzle reveals a hidden picture.

Example: For instance, a clue 3 1 for a row means:

There are 3 consecutive filled cells,
Followed by at least one blank cell,
Then 1 filled cell.

Nonograms require deductive reasoning and pattern recognition to solve and can vary in complexity from small 5×5 grids to large, intricate puzzles.

Here is an example of nonogram crossword:

nonogram

About repo

This repository contains a Multisize Nonogram Solver, a tool designed to automatically solve nonogram puzzles using algorithmic techniques.

Usage

git clone https://github.com/yourusername/nonogram-solver.git
cd nonogram-solver

After clonning, you should open main.py file and put your crossword clues according to this signature as argument of solve(clues...):

clues = (tuple((column_clues,) for column_clues in column),
         tuple((row_clues,) for row_clues in row))

Then run the file:

python main.py

About

Multisize Nonogram Solver

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages