Simplify evaluation of virtual pieces
authorFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Apr 2021 13:50:15 +0000 (15:50 +0200)
committerFabian Fichter <ianfab@users.noreply.github.com>
Sun, 4 Apr 2021 13:50:15 +0000 (15:50 +0200)
bughouse STC
ELO: 107.54 +-72.6 (95%) LOS: 99.9%
Total: 100 W: 65 L: 35 D: 0

bughouse LTC
ELO: 138.99 +-75.2 (95%) LOS: 100.0%
Total: 100 W: 69 L: 31 D: 0

src/evaluate.cpp

index f7b78f3..f09f4ca 100644 (file)
@@ -657,11 +657,6 @@ namespace {
         if (pt == pos.drop_no_doubled())
             score -= make_score(50, 20) * std::max(pos.count_with_hand(Us, pt) - pos.max_file() - 1, 0);
     }
-    else if (pos.count_in_hand(Us, pt) < 0)
-    {
-        // Penalize drops of virtual pieces
-        score += (PSQT::psq[make_piece(WHITE, pt)][SQ_NONE] + make_score(1000, 1000)) * pos.count_in_hand(Us, pt);
-    }
 
     return score;
   }