simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Fri Dec 30 00:01:20 GMT 2022


TL;DR:
  7249530 Clear any existing Tracks flash data when generating it

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-30 00:01:20

commit 72495304292e9ef71c996c571269557c2a299fdf
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=72495304292e9ef71c996c571269557c2a299fdf;hp=3cb919f4f7eb8a0785ace3c750a4a33987a6eb49
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Fri Dec 30 00:00:17 2022 +0000

    Clear any existing Tracks flash data when generating it
    
    Simon points out that if you have an ambiguous puzzle then it might
    need different flash data for different solutions, so if you solve it
    one way, than manually unsolve it and solve it another way, the old
    flash data in the game state need to be cleared out when the new flash
    data are written.
    
    Tested by solving the hugely ambiguous "5x5:CwC,5,5,5,5,S5,S5,5,5,5,5".

 tracks.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)



More information about the tartarus-commits mailing list