simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Jan 28 23:46:28 GMT 2023
TL;DR:
4359f59 Validate the number of pegs and holes in a Pegs game ID
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2023-01-28 23:46:28
commit 4359f59dd22770a94e29b2ddd54b533ad1713550
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=4359f59dd22770a94e29b2ddd54b533ad1713550;hp=75e8a1a9cabe7567f6019b1226783b61ba1ac42f
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Sat Jan 28 23:45:48 2023 +0000
Validate the number of pegs and holes in a Pegs game ID
Without this, "1:O" causes an assertion violation, '!"new_ui found
nowhere for cursor"'. We may as well require two pegs and one hole,
since that's the minimum for a game in which there are any moves to
make.
pegs.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
More information about the tartarus-commits
mailing list