[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] comment on undo (and replay and init and swap)
On Thu, 31 May 2001, Scott Huddleston wrote:
> It would be nice if all pbmserv games were replayable.
>
> I know dots can't undo because it is not replayable, and that's because
> the randomly initialized board is not stored in the game record. If I
> still had some spare hacking time and energy I'd modify dots to store the
> board initialization as initial "moves", to make dots replayable and
> undoable. Anyone else feel like doing it? :-)
A different method which may work is saving the initialboard in the game
file. In the Init() method, randomly create the board if it is not there
(new game), or leave it the same if it is already there (undo).
> P.P.S.- Another nice replay feature would be to make the general move
> parser more robust. E.g., "Forfeit" in a game record prevents fofeited
> games from being viewed in replay. A more robust parser would accept
> Forfeit and treat it as a pass.
By replay, are you talking about the "game show board#move" syntax?
That works even if the game has forfeits. (Actually I just noticed that
ChineseCheckers has a problem with that syntax which can occur on forfeits
_and_ resigns.)
~ John Williams