[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pbmserv-dev] Invalid moves and undo and such



I'm playing Antipod with Cameron. We're discussing how the board should be numbered, and Cameron decided to change the numbering to eliminate the left and right designation. Unfortunately, I moved using the old syntax when the program was already looking for new syntax. I moved "d2r", which the program took as "d2".

Q1: What should a program do when there is an extraneous character after an otherwise valid move? I think it should always be rejected, because the chance that there is a typo is high.

So I immediately issued an undo. A few hours later, Cameron checked his email. He read his email sequentially, and replied to the move before he read the undo request. The program discarded the undo and accepted his move.

Q2: Should a program accept a move when there is an undo pending? I think not, because it will normally happen just this way. The player will always see the original move before seeing the undo, and may send a move immediately. I know that some games reject moves when an undo is pending because it has happened to me.
--
RB |\ Randall Bart
aa |/ admin@RandallBart.com Home: 1-212-965-1786 Barticus@att.net
nr |\ Cell: 1-917-715-0831 I LOVE YOU Work: 1-212-343-1234 x3016
dt ||\ Attemped Murder of Terri Schiavo: http://www.terrisfight.org/
a |/ Multiple sclerosis: http://www.cbc.ca/webone/alison/
l |\ DOT-HS-808-065 The Church Of The Unauthorized Truth:
l |/ MS^7=6/28/107 http://yg.cotut.com mailto:s@cotut.com