From: Fabian Fichter Date: Wed, 16 Dec 2020 17:47:26 +0000 (+0100) Subject: Simplify away shogi pawns from space bonus X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=da493877d8b161e5d6fd96730a5e7888ae9f0822;p=fairystockfish.git Simplify away shogi pawns from space bonus shogi STC LLR: 2.96 (-2.94,2.94) [-10.00,5.00] Total: 1986 W: 1016 L: 962 D: 8 http://www.variantfishtest.org:6543/tests/view/5fd940e86e23db221d9e954f shogi LTC LLR: 2.95 (-2.94,2.94) [-10.00,5.00] Total: 1394 W: 724 L: 666 D: 4 http://www.variantfishtest.org:6543/tests/view/5fd9b4876e23db221d9e9554 --- diff --git a/src/evaluate.cpp b/src/evaluate.cpp index 8f1ffba..d5a13e2 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -1072,12 +1072,11 @@ namespace { // Find the available squares for our pieces inside the area defined by SpaceMask Bitboard safe = SpaceMask - & ~pos.pieces(Us, PAWN, SHOGI_PAWN) - & ~attackedBy[Them][PAWN] - & ~attackedBy[Them][SHOGI_PAWN]; + & ~pos.pieces(Us, PAWN) + & ~attackedBy[Them][PAWN]; // Find all squares which are at most three squares behind some friendly pawn - Bitboard behind = pos.pieces(Us, PAWN, SHOGI_PAWN); + Bitboard behind = pos.pieces(Us, PAWN); behind |= shift(behind); behind |= shift(behind);