simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Sat Feb 15 15:59:33 GMT 2025
TL;DR:
dc2407e Use semantic enum entry names for pref indices
b99f107 slant: add preference: fading grounded components
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: 2025-02-15 15:59:33
commit dc2407ed0ce90a15d8b494850964de74fe5ea7df
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=dc2407ed0ce90a15d8b494850964de74fe5ea7df;hp=5edcabb967adb1b032bd46e4abb9c0015cd8a3c7
Author: Hauke Rehr <hauke.rehr at uni-jena.de>
Date: Tue Feb 11 07:36:33 2025 +0100
Use semantic enum entry names for pref indices
[Commit message added by SGT: this makes it easier to allocate indices
in the config_item array, and keep them in sync between get_prefs and
set_prefs for each game.]
bridges.c | 21 +++++++++++++--------
fifteen.c | 26 ++++++++++++++++----------
guess.c | 21 +++++++++++++--------
keen.c | 22 ++++++++++++++--------
lightup.c | 21 +++++++++++++--------
loopy.c | 36 +++++++++++++++++++++---------------
map.c | 52 ++++++++++++++++++++++++++++++----------------------
net.c | 22 ++++++++++++++--------
palisade.c | 25 +++++++++++++++----------
pearl.c | 25 +++++++++++++++----------
range.c | 25 +++++++++++++++----------
signpost.c | 26 ++++++++++++++++----------
singles.c | 21 +++++++++++++--------
slant.c | 26 ++++++++++++++++----------
solo.c | 22 ++++++++++++++--------
towers.c | 37 ++++++++++++++++++++++---------------
undead.c | 37 ++++++++++++++++++++++---------------
unequal.c | 22 ++++++++++++++--------
untangle.c | 47 +++++++++++++++++++++++++++--------------------
19 files changed, 323 insertions(+), 211 deletions(-)
commit b99f10727a17d84938ae75670945638ad67a8c95
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=b99f10727a17d84938ae75670945638ad67a8c95;hp=dc2407ed0ce90a15d8b494850964de74fe5ea7df
Author: Hauke Rehr <hauke.rehr at uni-jena.de>
Date: Sun Feb 9 20:47:07 2025 +0100
slant: add preference: fading grounded components
Commit message added by SGT:
The general idea is that the puzzle constraint "you must not form a
loop" can also be phrased as "every grid vertex must have a path to
the boundary of the grid", on the basis that in a grid with every
square filled, any connected component of vertices _not_ joined to the
boundary by a path must instead be surrounded by a loop blocking every
way it could get there. So by changing the colour of each
"grounded" (connected to the boundary) grid edge, you draw the
player's attention to the components that don't yet have a path to the
edge, so they can consider the possible paths.
This is the kind of hint that users can very easily find to be
patronising and intrusive, not to mention a spoiler if they haven't
even made the leap from "no loops" to "everything must be grounded".
So it's a preference, and off by default.
This patch is somewhat rewritten from the submitted version, to
conform to local style and also compile in older C versions.
slant.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 68 insertions(+), 2 deletions(-)
More information about the tartarus-commits
mailing list