simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Dec 23 22:59:54 GMT 2022


TL;DR:
  d332973 Guess: Make 'H' key work properly with "Allow duplicates" off

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:           2022-12-23 22:59:54

commit d3329734387dbaf972b651729245d4ffe7efcc4e
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=d3329734387dbaf972b651729245d4ffe7efcc4e;hp=11c1447eac7698f01c2a00764c2b1a900a9d6a90
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Fri Dec 23 15:24:09 2022 +0000

    Guess: Make 'H' key work properly with "Allow duplicates" off
    
    Before it would not only generate an invalid guess, but also override
    the usual rules to allow you to submit it.  Now guesses are only
    provided if they're valid, and I've adjusted the maximum-colour finder
    so that the code can actually find the correct guess.  This should have
    no effect on the behaviour with "Allow duplicates" turned on.

 guess.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)



More information about the tartarus-commits mailing list