diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-11 22:49:36 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-11 22:49:36 +0000 |
| commit | 97b03cc67a31c1d0869a21c50b9ca31f78775ff9 (patch) | |
| tree | 2b1320e1aca5462ad9677ce9199feecf05dce426 /PuzzleApplet.java | |
| parent | 896a73bd7ff8cbde44e97d89cef57346478f0072 (diff) | |
| download | puzzles-97b03cc67a31c1d0869a21c50b9ca31f78775ff9.zip puzzles-97b03cc67a31c1d0869a21c50b9ca31f78775ff9.tar.gz puzzles-97b03cc67a31c1d0869a21c50b9ca31f78775ff9.tar.bz2 puzzles-97b03cc67a31c1d0869a21c50b9ca31f78775ff9.tar.xz | |
Don't allow moves that change the constraints in Unequal
Unequal has a flags word per cell. Some of those flags are fixed,
like the locations of the ">" signs, but others indicate errors and
are used to allow the player to mark clues as "spent". Move strings
beginning with "F" allow the user to change the "spent" flags, but
they shouldn't allow the user to change any other flags, especially
those marking the constraints.
Without this fix, the following save file gives a "solver_nminmax:
Assertion `x >= 0 && y >= 0 && x < o && y < o' failed" after it adds a
clue that points off the board:
SAVEFILE:41:Simon Tatham's Portable Puzzle Collection
GAME :7:Unequal
PARAMS :3:3e0
CPARAMS :3:3e0
DESC :17:0,0,0,0,0,0,0,0,0
NSTATES :2:3
STATEPOS:1:3
MOVE :6:F2,0,4
MOVE :1:H
Diffstat (limited to 'PuzzleApplet.java')
0 files changed, 0 insertions, 0 deletions