Tweak piece values for bughouse
authorFabian Fichter <ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 10:51:04 +0000 (11:51 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Fri, 6 Mar 2020 10:51:04 +0000 (11:51 +0100)
bughouse
Total: 200 W: 124 L: 75 D: 1

src/psqt.cpp

index 03fb321..4300b7b 100644 (file)
@@ -155,6 +155,9 @@ void init(const Variant* v) {
       else if (!v->checking)
           score = make_score(mg_value(score) * 2000 / (3500 + mg_value(score)),
                              eg_value(score) * 2200 / (3500 + eg_value(score)));
+      else if (v->twoBoards)
+          score = make_score(mg_value(score) * 7000 / (7000 + mg_value(score)),
+                             eg_value(score) * 7000 / (7000 + eg_value(score)));
       else if (pt == strongestPiece)
               score += make_score(std::max(QueenValueMg - PieceValue[MG][pt], VALUE_ZERO) / 20,
                                   std::max(QueenValueEg - PieceValue[EG][pt], VALUE_ZERO) / 20);