Skip to content

Commit 29e2dfa

Browse files
author
Richard Delorme
committed
Remove chess960 guess
1 parent 8099b39 commit 29e2dfa

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/board.d

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ final class Board {
426426
xKing[0] = xKing[1] = Square.none;
427427
player = Color.white;
428428
ply = 0;
429+
chess960 = false;
429430
}
430431

431432
void set(string fen = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1") {
@@ -473,9 +474,6 @@ final class Board {
473474
foreach (c; s[2]) stack[ply].castling |= toCastling(c);
474475
stack[ply].castling &= piece[Piece.rook];
475476
}
476-
chess960 = ((stack[ply].castling & 0x7EFFFFFFFFFFFF7EUL) != 0);
477-
chess960 |= ((stack[ply].castling & 0x8100000000000000UL) && xKing[Color.black] != Square.e8);
478-
chess960 |= ((stack[ply].castling & 0x0000000000000081UL) && xKing[Color.white] != Square.e1);
479477

480478
if (s[3] != "-") {
481479
stack[ply].enpassant = toSquare(s[3]);

0 commit comments

Comments
 (0)