From f47576af478e4e2e384cd4c216a0239ee6809e00 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Sun, 26 Jan 2020 13:07:16 +0100 Subject: [PATCH] Fix slider blockers for banner No functional change for all variants except manchu. --- src/position.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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)))) -- 1.7.0.4