From da493877d8b161e5d6fd96730a5e7888ae9f0822 Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Wed, 16 Dec 2020 18:47:26 +0100 Subject: [PATCH] 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 --- src/evaluate.cpp | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) 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); -- 1.7.0.4