Nonogram is a puzzle game in which players fill in cells on a grid to reveal a hidden image based on numerical clues given for each row and column
This is first project, and I completed it the summer after my freshmen year at CUNY Hunter College. I began completing Nonograms on my phone, started to really enjoy the game and thought it would be cool to create a program that generates Nonogram game boards. I decided to use python for the implementation, specifically, pygame and numpy.
The program uses a 2D array to generate a 10x10 grid, resembling a solved Nonogram board. Later, I decided to add threading to speed up the array parsing process
Clone down this repository. You will need Python and Git installed globally on your machine.
-
Travel to root directory
-
Create virtual enviorment:
python -m venv <env_name> -
Avtivate enviorment:
source <env_name>/bin/activate -
Install packages:
pip install -r requirements.txt -
Run the project with:
python Nonogram.py -
When done, run:
deactivate
- I left a sample file (threadSample.py) for Threading in Python, incase you're unfamiliar with the implementation
- Here is a resource to understand threading
