simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Thu Mar 30 08:51:42 BST 2023
TL;DR:
796d0f3 Hats: factor out the parent-choosing system.
73dab39 Hats: choose the tiling's starting hat more uniformly.
e6aa7ab hat-test: allow choosing a random number seed.
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-03-30 08:51:42
commit 796d0f372f12debd45950cd17908ef98e643b13d
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=796d0f372f12debd45950cd17908ef98e643b13d;hp=4720eeb1aaf2591613a17345d4e4326287c0e8bc
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Mar 30 08:34:57 2023 +0100
Hats: factor out the parent-choosing system.
NFC, but I'm about to want to use it again elsewhere.
hat.c | 384 ++++++++++++++++++++++++++++++++++--------------------------------
1 file changed, 199 insertions(+), 185 deletions(-)
commit 73dab39bf5661565f97b2a9571547d5c62f13e39
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=73dab39bf5661565f97b2a9571547d5c62f13e39;hp=796d0f372f12debd45950cd17908ef98e643b13d
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Mar 30 08:37:17 2023 +0100
Hats: choose the tiling's starting hat more uniformly.
This fills in the missing piece of commit 6f75879e9fe7cb5, which was
trying to make the output patches of tiling as uniformly random as
possible across the whole space of possible ones. I fixed every
_intermediate_ step in the algorithm, but forgot the starting one!
hat.c | 34 +++++++++++++++++++++++++++++-----
1 file changed, 29 insertions(+), 5 deletions(-)
commit e6aa7ab6dd219d92b332c3662de95c28f7bd6b8f
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=e6aa7ab6dd219d92b332c3662de95c28f7bd6b8f;hp=73dab39bf5661565f97b2a9571547d5c62f13e39
Author: Simon Tatham <anakin at pobox.com>
Date: Thu Mar 30 08:45:06 2023 +0100
hat-test: allow choosing a random number seed.
The default one is always the same, because the main purpose of this
tool is debugging. But one person has already wanted to use it for
actually generating a tiling patch for another use, so let's make it
easier to vary the randomness!
hat.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
More information about the tartarus-commits
mailing list