colbyga / pychess

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

Fischer castling can be invisible in simple notation. Breaks engines #362

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Play this game: g1f3, e7e6, d2d4, d7d5, c1g5, f8d6, f3e5, g8h6, g5h6, d6f8,
h6f4, f7f5, f1g1, d8f6, e5f3, c8d7, f4g5, b8c8

The last move was actually a castlemove, but the engines (understandably)
interprets it as a king move, and thus don't move the rook (a8->d8)

Original issue reported on code.google.com by lobais on 28 Dec 2008 at 4:17

GoogleCodeExporter commented 9 years ago
In pgn this is:

[Variant "Fischerandom"]
[SetUp "1"]
[FEN "rkbbnqnr/pppppppp/8/8/8/8/PPPPPPPP/RKBBNQNR w HAha - 0 1"]
1. Ngf3 e6 2. d4 d5 3. Bg5 Qd6 4. Ne5 Nh6 5. Bxh6 Qf8 6. Bf4 f5 7. Qg1 Bf6 8.
N5f3 Bd7 9. Bg5 O-O-O

Original comment by lobais on 28 Dec 2008 at 4:20

GoogleCodeExporter commented 9 years ago
The correct AN (long)castling move is b8a8 in Fischerandom.

Original comment by gbtami on 28 Dec 2008 at 4:40

GoogleCodeExporter commented 9 years ago
I was wrong. CECP FischerRandom castling is O-O/O-O-O.
http://tim-mann.org/xboard/engine-intf.html#8

Fixed in rev1323.

Original comment by gbtami on 29 Dec 2008 at 5:51