aboutsummaryrefslogtreecommitdiff
path: root/hat-internal.h
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-04-01 18:54:29 +0100
committerBen Harris <bjh21@bjh21.me.uk>2023-04-01 20:44:47 +0100
commit0bd1a8057841386754f9f4a8a268616c7ce80e80 (patch)
tree3511111ff887105b6d56bc4d5deced25bcb6eee0 /hat-internal.h
parent91735e5019be84d2fa693c5d40746c818ace28f8 (diff)
downloadpuzzles-0bd1a8057841386754f9f4a8a268616c7ce80e80.zip
puzzles-0bd1a8057841386754f9f4a8a268616c7ce80e80.tar.gz
puzzles-0bd1a8057841386754f9f4a8a268616c7ce80e80.tar.bz2
puzzles-0bd1a8057841386754f9f4a8a268616c7ce80e80.tar.xz
Magnets: add a check that magnets don't wrap between lines
There was nothing in Magnet's description validation to prevent there being the left end of a magnet at the right end of a row and the right end of a magnet at the left end of the row below. Indeed as far as I can such a game (e.g. 3x3:..2,2..,...,1.1,TLRB*LRLR) plays entirely correctly except that one magnet is discontinuous. While this worked, it was entirely an artefact of the particular memory layout that Magnets uses and shouldn't have been allowed, so I've added an additional validation rule to stop it.
Diffstat (limited to 'hat-internal.h')
0 files changed, 0 insertions, 0 deletions