giewev / Classy

MIT License
1 stars 0 forks source link

Castling appears to happen when the rook and king are flipped #12

Closed giewev closed 7 years ago

giewev commented 7 years ago

During a game on the website I discovered that if the black king is at h8 and the black rook is at e8 then it is possible for the black player to "Castle", ending up with his rook on g8 and his king on f8. This was possible even with the white king on f7 (Making it clearly illegal, even beyond the ridiculous castling).

I suspect this is not actually a problem with the engine, but happened because the UI wrongly interpreted Rg8 as castling and updating accordingly.

The FEN recorded according to the website was 6rk/R3PK2/8/1p1P4/1P5p/P6P/8/8 w - - 3 55 but visually it was 5kr1/R3PK2/8/1p1P4/1P5p/P6P/8/8 w - - 3 55

The position beforehand was 4r2k/R3PK2/8/1p1P4/1P5p/P6P/8/8 b - - 3 54

giewev commented 7 years ago

Reproduction steps: Load this FEN 4r2k/R3PK2/8/1p6/1P1P3p/P6P/8/8 w - - 3 54 And move the pawn on d4 to d5