[FIX] Chess Castling Fix
Bernhard Pieber
bernhard at pieber.com
Sat Sep 18 19:30:04 UTC 2004
Rick McGeer <rick at mcgeer.com> wrote:
> Date: Sat, 18 Sep 2004 01:14:09 -0700
> From: Rick McGeer <rick at mcgeer.com>
> Subject: [FIX] Chess Castling Fix
> To: squeak-dev at lists.squeakfoundation.org
> delivery-date: Sat, 18 Sep 2004 10:14:35 +0200
> envelope-to: celeste at pieber.com
> reply-to: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
>
> I added two new methods to ChessMoveGenerator and a bunch of constants
> to ChessConstants. Briefly, a bug in the chess game is that it will
> castle when either the king or rook is under attack, or any of the
> intermediate squares is under attack. This is, uh, against the rules. So
> I added a little code which checks efficiently to see if that's the
> case, and if it is castling is invalid. Tested and works, should be no
> problem to load.
>
> Change Set: Chess Castling Fix
> Date: 19 September 2004
> Author: Rick McGeer
>
> Thanks to Andreas Raab for much discussion of the problem, consulting and being patient with my silly bugs.
This sounds like good to have. However, I don't see your ChangeSet.
- Bernhard
More information about the Squeak-dev
mailing list
|