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

Re: [pbmserv-dev] quoridor bug



----- Original Message ----- 
From: "Lyman Hurd" <lhurd@yahoo.com>

<<
I have heard of this bug bug experienced myself in one
of my games.  The quoridor program does not allow one
to make a move that would make it impossible for ones
opponent to reach his goal but has no problem letting
one make a move that leaves oneself no way to reach
the goal.  Unfortunately at this point the opponent
has no move that would be considered legal and he has
to forfeit.
>>

Hmm. This shouldn't be the case. IIRC, the game only does the pathfinding
stuff (i.e., checks if there is a way for the opponent to reach his goal)
after you put a fence on the board, and not after moving your pawn. So pawn
moves would never be illegal, even if your opponent is "trapped"  -- unless,
of course, you try something stupid like running into a wall or moving off
the board.

Sirrus