Tweak drop mobility
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 3 Jul 2020 13:05:24 +0000 (15:05 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 3 Jul 2020 13:05:24 +0000 (15:05 +0200)
reversi
Total: 100 W: 99 L: 1 D: 0

src/evaluate.cpp

index 3b327b6..1b94859 100644 (file)
@@ -453,6 +453,8 @@ namespace {
         if (pos.promoted_piece_type(pt) != NO_PIECE_TYPE && pos.drop_promoted())
             score += make_score(std::max(PieceValue[MG][pos.promoted_piece_type(pt)] - PieceValue[MG][pt], VALUE_ZERO),
                                 std::max(PieceValue[EG][pos.promoted_piece_type(pt)] - PieceValue[EG][pt], VALUE_ZERO)) / 4 * pos.count_in_hand(Us, pt);
+        if (pos.enclosing_drop())
+            mobility[Us] += make_score(500, 500) * popcount(b);
     }
 
     return score;