clone

fifteen puzzle games for the terminal, with daily puzzles, weekly ladders and xp, built on bubble tea

Fix infinite loop risk and add large grid tests

Dami committed a61c52e
- Add maxAttempts (100) to prevent infinite loops in GenerateRandomTomography
- Scale timeout with grid size (max(w,h) seconds)
- Simplify redundant branch in generateLinePossibilitiesRecursive
- Add 15x15 and 20x20 uniqueness tests with skip conditions
commit
a61c52e9d9bc914ca1c941bb5bda081bca2a07d1
parent
5397c4ced5f9782310ddc142ace1c4a229f207aa
author
Dami <dami.etoile@gmail.com>
2 files changed, +46 -5
Mnonogram/generator.go13++++++----
Mnonogram/nonogram_test.go38++++++++++++++++++++++++++++++
M nonogram/generator.go +8 -5
M nonogram/nonogram_test.go +38 -0