From: Fabian Fichter Date: Sun, 2 Jan 2022 12:08:30 +0000 (+0100) Subject: Fix Reversi style piece flips X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6bdcdd85c8d6a471a266a7644ba54b13796c437a;p=fairystockfish.git Fix Reversi style piece flips between_bb was redefined in an upstream merge, which broke the implementation for Reversi/Othello. --- diff --git a/src/position.cpp b/src/position.cpp index 2e79820..d1a1c1f 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -1502,7 +1502,7 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) { { Bitboard b = attacks_bb(us, QUEEN, to, board_bb() & ~pieces(~us)) & ~PseudoAttacks[us][KING][to] & pieces(us); while(b) - st->flippedPieces |= between_bb(to, pop_lsb(b)); + st->flippedPieces |= between_bb(pop_lsb(b), to) ^ to; } else {