Closed yelizariev closed 12 years ago
On game below, king on check and only move for black is en passant move H4 G3, but p4_move() return P4_MOVE_ILLEGAL with message "in check [5001, 57, 68]".
["e2e4", "e7e5", "f1c4", "f8c5", "d1h5", "d8f6", "g1f3", "g7g6", "h5h4", "b8c6", "h4f6", "g8f6", "e1g1", "c6d4", "f3d4", "c5d4", "d2d3", "f6g4", "c1e3", "d4e3", "f2e3", "g4e3", "c4f7", "e8e7", "f1f2", "h8f8", "f7d5", "f8f2", "g1f2", "e3c2", "b1c3", "c2a1", "d5g8", "h7h5", "c3d5", "e7f8", "d5c7", "a8b8", "g8h7", "f8g7", "h7g6", "g7g6", "c7e8", "b7b5", "f2g3", "c8a6", "e8c7", "b8b6", "c7d5", "b6d6", "d5e7", "g6h6", "e7f5", "h6g5", "f5d6", "h5h4", "g3h3", "b5b4", "b2b3", "a6d3", "d6f7", "g5h5", "g2g4"]
FEN SNAPSHOT: "8/p2p1N2/8/4p2k/1p2P1Pp/1P1b3K/P6P/n7 b - g3 0 32"
Fixed in commit 7a08d741df2a008acef.
Thanks again Ivan.
On game below, king on check and only move for black is en passant move H4 G3, but p4_move() return P4_MOVE_ILLEGAL with message "in check [5001, 57, 68]".
["e2e4", "e7e5", "f1c4", "f8c5", "d1h5", "d8f6", "g1f3", "g7g6", "h5h4", "b8c6", "h4f6", "g8f6", "e1g1", "c6d4", "f3d4", "c5d4", "d2d3", "f6g4", "c1e3", "d4e3", "f2e3", "g4e3", "c4f7", "e8e7", "f1f2", "h8f8", "f7d5", "f8f2", "g1f2", "e3c2", "b1c3", "c2a1", "d5g8", "h7h5", "c3d5", "e7f8", "d5c7", "a8b8", "g8h7", "f8g7", "h7g6", "g7g6", "c7e8", "b7b5", "f2g3", "c8a6", "e8c7", "b8b6", "c7d5", "b6d6", "d5e7", "g6h6", "e7f5", "h6g5", "f5d6", "h5h4", "g3h3", "b5b4", "b2b3", "a6d3", "d6f7", "g5h5", "g2g4"]
FEN SNAPSHOT: "8/p2p1N2/8/4p2k/1p2P1Pp/1P1b3K/P6P/n7 b - g3 0 32"