simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Aug 27 13:57:13 BST 2023


TL;DR:
  d3f825c Singles: fix spelling in a validate_params error.
  67496e7 Singles: prevent hangs at low puzzle sizes.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2023-08-27 13:57:13

commit d3f825c98c2877ca3e2763492ba99973c1b9dc5f
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=d3f825c98c2877ca3e2763492ba99973c1b9dc5f;hp=f279c5eba035d018a8805a65a8a245b8b8d2ea2e
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Aug 27 13:11:13 2023 +0100

    Singles: fix spelling in a validate_params error.
    
    'height', not 'neight'. Apparently has been misspelled since the
    puzzle was first committed. I suppose they look similar enough that it
    never caused a problem.

 singles.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 67496e74f68db900d8117be6de3c75285c29c489
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=67496e74f68db900d8117be6de3c75285c29c489;hp=d3f825c98c2877ca3e2763492ba99973c1b9dc5f
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Aug 27 13:22:45 2023 +0100

    Singles: prevent hangs at low puzzle sizes.
    
    A user reports that trying to generate a 2x2 or 3x3 puzzle at Tricky
    difficulty causes the generator to hang, for the usual reason that
    there aren't any - puzzles of that size are either ambiguous or Easy.
    
    The usual response in this code base is to quietly downgrade the
    puzzle difficulty when absolutely necessary, so here's some code to do
    that (and also for 2x3, which the user didn't test, but unsurprisingly
    behaves the same way).

 singles.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)



More information about the tartarus-commits mailing list