X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=6458bb39d6d3703c80c52bb6ead08cfeb4fe1190;hp=e5e0ab06d6eff97946b800ae8ff7bbf159cfa198;hb=f59323b56a0920676c2589a36356a44fc42c8f40;hpb=25a9b601b211d0c041b483406e9160382201a487 diff --git a/src/position.cpp b/src/position.cpp index e5e0ab06..6458bb39 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -364,9 +364,9 @@ Bitboard Position::hidden_checkers() const { while (pinners) { - b = squares_between(ksq, pop_1st_bit(&pinners)) & pieces(); + b = between_bb(ksq, pop_1st_bit(&pinners)) & pieces(); - if (b && single_bit(b) && (b & pieces(sideToMove))) + if (b && !more_than_one(b) && (b & pieces(sideToMove))) result |= b; } return result; @@ -608,7 +608,7 @@ bool Position::is_pseudo_legal(const Move m) const { return false; // Our move must be a blocking evasion or a capture of the checking piece - if (!((squares_between(checksq, king_square(us)) | checkers()) & to)) + if (!((between_bb(checksq, king_square(us)) | checkers()) & to)) return false; } // In case of king moves under check we have to remove king so to catch