From: Fabian Fichter Date: Wed, 16 Dec 2020 17:48:29 +0000 (+0100) Subject: Simplify away shogi pawn structure evaluation X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=6700dce60b8ebbceaed147402565e7c742212b84;p=fairystockfish.git Simplify away shogi pawn structure evaluation shogi STC LLR: 2.98 (-2.94,2.94) [-10.00,5.00] Total: 1737 W: 890 L: 834 D: 13 http://www.variantfishtest.org:6543/tests/view/5fd93a846e23db221d9e9540 shogi LTC LLR: 2.96 (-2.94,2.94) [-10.00,5.00] Total: 3348 W: 1686 L: 1642 D: 20 http://www.variantfishtest.org:6543/tests/view/5fd9b46f6e23db221d9e9552 --- diff --git a/src/pawns.cpp b/src/pawns.cpp index 137f2e0..fef84da 100644 --- a/src/pawns.cpp +++ b/src/pawns.cpp @@ -191,22 +191,6 @@ namespace { if (pos.count(Us) == pos.count(Us)) score = score * 2; - const Square* pl_shogi = pos.squares(Us); - - ourPawns = pos.pieces(Us, SHOGI_PAWN); - theirPawns = pos.pieces(Them, SHOGI_PAWN); - - // Loop through all shogi pawns of the current color and score each one - while ((s = *pl_shogi++) != SQ_NONE) - { - assert(pos.piece_on(s) == make_piece(Us, SHOGI_PAWN)); - - neighbours = ourPawns & adjacent_files_bb(s); - - if (!neighbours) - score -= Isolated / 2; - } - return score; }