aboutsummaryrefslogtreecommitdiff
path: root/html/pattern.html
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-02-04 16:18:27 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-02-05 20:58:21 +0000
commit84ec2a0a77d63450311f7c25b36d4b9f7e3c53e1 (patch)
treef44cf44befb111ccd3bce6297918a2cd5cf0f3f1 /html/pattern.html
parent9ce0a6d93212ffc0986a2b399fd8e9e983f62904 (diff)
downloadpuzzles-84ec2a0a77d63450311f7c25b36d4b9f7e3c53e1.zip
puzzles-84ec2a0a77d63450311f7c25b36d4b9f7e3c53e1.tar.gz
puzzles-84ec2a0a77d63450311f7c25b36d4b9f7e3c53e1.tar.bz2
puzzles-84ec2a0a77d63450311f7c25b36d4b9f7e3c53e1.tar.xz
Unequal: Don't insist that solve moves must actually solve
A corrupt save file can include an "S" move that doesn't give a valid solution. An assertion failure ("execute_move: Assertion `rc > 0' failed.") at that point is rude, so now we just don't set the "completed" flag in that case. We still set the "cheated" flag, to reward (lack of) effort. Here's a trivial test case: SAVEFILE:41:Simon Tatham's Portable Puzzle Collection GAME :7:Unequal CPARAMS :1:3 PARAMS :1:3 DESC :17:0,0,0,0,0,0,0,0,0 NSTATES :1:2 STATEPOS:1:2 MOVE :10:S222222222
Diffstat (limited to 'html/pattern.html')
0 files changed, 0 insertions, 0 deletions