Simplify away shogi pawns from space bonus
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 16 Dec 2020 17:47:26 +0000 (18:47 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 16 Dec 2020 17:47:26 +0000 (18:47 +0100)
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

index 8f1ffba..d5a13e2 100644 (file)
@@ -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<Down>(behind);
     behind |= shift<Down+Down>(behind);