Hello! I'm making a nonogram/picross game using 2D arrays. For example i have this array:
1 0 1 1 0
0 1 0 1 0
1 1 1 1 1
0 0 1 0 0
0 1 1 1 0
I have managed to figure out everything to make it a working game except one thing. What approach to take so that i can generate the number system on the sides.
Ex.: For this row from the array "1 0 1 1 0" I should generate "1 2" or for "0 1 0 1 0" -> "1 1"
https://en.wikipedia.org/wiki/Nonogram
Any ideas are welcome!