From: Fabian Fichter Date: Sun, 26 Jan 2020 12:07:16 +0000 (+0100) Subject: Fix slider blockers for banner X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=f47576af478e4e2e384cd4c216a0239ee6809e00;p=fairystockfish.git Fix slider blockers for banner No functional change for all variants except manchu. --- diff --git a/src/position.cpp b/src/position.cpp index cd392af..e52f6d7 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -753,7 +753,7 @@ Bitboard Position::slider_blockers(Bitboard sliders, Square s, Bitboard& pinners Square sniperSq = pop_lsb(&snipers); Bitboard b = between_bb(s, sniperSq) & occupancy; - if (b && (!more_than_one(b) || (type_of(piece_on(sniperSq)) == CANNON && popcount(b) == 2))) + if (b && (!more_than_one(b) || ((AttackRiderTypes[type_of(piece_on(sniperSq))] & HOPPING_RIDERS) && popcount(b) == 2))) { blockers |= b; if (b & pieces(color_of(piece_on(s))))