simon-svn: puzzles: simon

Commits to Tartarus CVS repository. tartarus-commits at lists.tartarus.org
Sun Jun 19 14:43:35 BST 2011


SVN root:       svn://svn.tartarus.org/sgt
Changes by:     simon
Revision:       9179
Date:           2011-06-19 14:43:35 +0100 (Sun, 19 Jun 2011)

Log message (12 lines):
Changed my mind about midend_is_solved: I've now reprototyped it as
midend_status(), and given it three return codes for win, (permanent)
loss and game-still-in-play. Depending on what the front end wants to
use it for, it may find any or all of these three states worth
distinguishing from each other.

(I suppose a further enhancement might be to add _non_-permanent loss
as a fourth distinct status, to describe situations in which you can't
play further without pressing Undo but doing so is not completely
pointless. That might reasonably include dead-end situations in Same
Game and Pegs, and blown-self-up situations in Mines and Inertia.
However, I haven't done this at present.)

Modified files:
U   puzzles/blackbox.c
U   puzzles/bridges.c
U   puzzles/cube.c
U   puzzles/devel.but
U   puzzles/dominosa.c
U   puzzles/fifteen.c
U   puzzles/filling.c
U   puzzles/flip.c
U   puzzles/galaxies.c
U   puzzles/guess.c
U   puzzles/inertia.c
U   puzzles/keen.c
U   puzzles/lightup.c
U   puzzles/loopy.c
U   puzzles/magnets.c
U   puzzles/map.c
U   puzzles/midend.c
U   puzzles/mines.c
U   puzzles/net.c
U   puzzles/netslide.c
U   puzzles/nullgame.c
U   puzzles/pattern.c
U   puzzles/pegs.c
U   puzzles/puzzles.h
U   puzzles/range.c
U   puzzles/rect.c
U   puzzles/samegame.c
U   puzzles/signpost.c
U   puzzles/singles.c
U   puzzles/sixteen.c
U   puzzles/slant.c
U   puzzles/solo.c
U   puzzles/tents.c
U   puzzles/towers.c
U   puzzles/twiddle.c
U   puzzles/unequal.c
U   puzzles/unfinished/group.c
U   puzzles/unfinished/pearl.c
U   puzzles/unfinished/separate.c
U   puzzles/unfinished/slide.c
U   puzzles/unfinished/sokoban.c
U   puzzles/untangle.c

Links:
http://svn.tartarus.org/sgt/?rev=9179&view=rev
http://svn.tartarus.org/sgt/puzzles/blackbox.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/bridges.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/cube.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/devel.but?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/dominosa.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/fifteen.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/filling.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/flip.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/galaxies.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/guess.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/inertia.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/keen.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/lightup.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/loopy.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/magnets.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/map.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/midend.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/mines.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/net.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/netslide.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/nullgame.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/pattern.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/pegs.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/puzzles.h?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/range.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/rect.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/samegame.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/signpost.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/singles.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/sixteen.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/slant.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/solo.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/tents.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/towers.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/twiddle.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/unequal.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/unfinished/group.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/unfinished/pearl.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/unfinished/separate.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/unfinished/slide.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/unfinished/sokoban.c?rev=9179&r1=9178&r2=9179
http://svn.tartarus.org/sgt/puzzles/untangle.c?rev=9179&r1=9178&r2=9179



More information about the tartarus-commits mailing list