liouh / picross

Playable picross puzzle generator written in JavaScript
66 stars 25 forks source link

Seed 5147933522 on 5x5 breaks the game #4

Open mmuehlf opened 2 years ago

mmuehlf commented 2 years ago

Hey, thanks for writing this - I've had lots of fun playing it during school.

I hacked together a seed finder and found that seed 5147933522 on 5x5 mode breaks the game.

grafic

Marking any cell as active or inactive leads to the progress jumping to NaN% and locks up the table.

This happens because there are zero active cells and the progress calculation (probably?) divides by zero. Shouldn't be too hard to fix and I might open a PR if I have time.

(P.S.: Try using seed 64013837068 on 5x5😃)