jakesylvestre / pychess

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

UCI engines can't castle in chess960 (FRC) #542

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play FRC against Stockfish 1.6.3. (Glaurung will probably work too).
2. Survive long enough for it to decide to castle. :)

What is the expected output? What do you see instead?
The engine expects to castle. Instead, it's killed.
In UCI the the castling move is sent as "king takes own rook". That is, if 
you start with the standard initial position and white plays O-O, the move 
is sent as e1h1 in FRC even though it would be e1g1 in standard chess.

Does it happen every time?
It happened once. Since UCI+castling+chess960 is tricky to get right I just 
assumed you guys don't have it right yet. :)

I have not tested whether the "opposite" bug occurs: if the kings start as 
f1 & f8, white's kingside rook is on h1, and white has kingside castling 
rights... is the move e1g1 treated as O-O when it should be treated as Kg1?

What version of the product are you using?
svn r1650

Please provide any additional information below.

I doubt the log files will help, but the last communication with Stockfish 
looked like this:
[GUI:]position fen 2q1k2r/4p1pp/2np1p2/1r2b3/2p1PnP1/1bP1N3/3P1P1P/RBQ2KBR 
b h g3 0 16
[GUI:]go wtime 27864 btime 27468 winc 0 binc 0
[Engine:]info depth 1
[Engine:]info depth 1 score cp 731 time 2 nodes 205 nps 102500 pv e8h8
[snip]
[Engine:]info nodes 112121 nps 65606 time 1709 hashfull 2
[Engine:]bestmove e8h8 ponder h2h4
[GUI:]stop
[GUI:]quit

Thanks!

Original issue reported on code.google.com by Uncombed...@gmail.com on 9 Mar 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Reproduced it with attached FEN. Thx. for reporting this!

Original comment by gbtami on 10 Mar 2010 at 4:04

GoogleCodeExporter commented 9 years ago
Fixed in rev1652.

Original comment by gbtami on 11 Mar 2010 at 12:50

GoogleCodeExporter commented 9 years ago

Original comment by gbtami on 11 Mar 2010 at 12:51