chiark / gitweb /
Changed my mind about midend_is_solved: I've now reprototyped it as
authorSimon Tatham <anakin@pobox.com>
Sun, 19 Jun 2011 13:43:35 +0000 (13:43 +0000)
committerSimon Tatham <anakin@pobox.com>
Sun, 19 Jun 2011 13:43:35 +0000 (13:43 +0000)
commit73daff393722196bf48244ca95dd4f64a351a473
tree7ec80b64bd497a886d3e33bdd4d666e87937e042
parent8dcdb33b77ebbe56d0ad385285d21344df5ac5f9
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.)

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