mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Move all Contempt Factor code to search.cpp
Where it is used. No functional change.
This commit is contained in:
@@ -268,8 +268,6 @@ namespace {
|
||||
namespace Eval {
|
||||
|
||||
Color RootColor;
|
||||
Value ContemptFactor;
|
||||
Value ValueDraw[2];
|
||||
|
||||
/// evaluate() is the main evaluation function. It always computes two
|
||||
/// values, an endgame score and a middle game score, and interpolates
|
||||
@@ -309,11 +307,6 @@ namespace Eval {
|
||||
KingDangerTable[1][i] = apply_weight(make_score(t, 0), Weights[KingDangerUs]);
|
||||
KingDangerTable[0][i] = apply_weight(make_score(t, 0), Weights[KingDangerThem]);
|
||||
}
|
||||
|
||||
if (Options["UCI_AnalyseMode"])
|
||||
ContemptFactor = VALUE_ZERO;
|
||||
else
|
||||
ContemptFactor = Options["Contempt Factor"] * PawnValueMg / 100;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user