colbyga / pychess

Automatically exported from code.google.com/p/pychess
GNU General Public License v3.0
0 stars 0 forks source link

can 0-0 while king was moved before #324

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I can play this game with PyChess trunk (r963):
1. e4 c5 2. Ke2 g5 3. Nf3 e6 4. Ke1 f5 5. Be2 Nc6 6. O-O fxe4

Original issue reported on code.google.com by gbtami on 10 May 2008 at 6:28

GoogleCodeExporter commented 9 years ago
In Philidor all moves were generated for BoardControl at each position, and a
dictionary was used to check if a, by the user proposed, moved was valid.
In trunk the validate function is used, so this function seams to have a bug in
checking for castling. The movegen function has the power to check for it, so 
the
internals should already be there.

Original comment by lobais on 12 May 2008 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by gbtami on 19 May 2008 at 3:58