[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [computer-go] Slight glitch on "undo" as handled by kgsgtp
On Sun, 2005-03-20 at 09:46 +0100, Michal Bazynski wrote:
> then i'll add another one :-) :
>
> - we do not support undo or clear_board. during the game it is
> impossible for human to undo, he can, however press undo during the
> scoring phase. at this moment we get a kgs-genmove-cleanup command
> (which, as has been explained couple of days ago, is sent only in rated
> games)! that would not be a big problem as we implement the cleanup
> command, however, after a couple of moves we get an illegal move error
> just as with the handicap game bug. i have not yet been able to track the
> reason for it, so it may be a bug in our cleanup implementation,
> but the appearence of this thread has made me want to mention it now...
Aha, there is a problem I never thought of! Right, on KGS either player
can undo during scoring and you can't refuse (this is different from
undo during play, because if either player is uncertain about the status
of groups of stones, I think they should be able to keep playing).
Since the undo is always undo-ing one or two passes, I think that in
this case if neither undo nor clear_board succeeds on the engine, I can
just ignore these failures. The board is in the proper shape, so just
sending the "play" and "genmove" commands that are needed should solve
the problem. I'll work on getting this done for 2.6.10 as well.
_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/