mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Retire Material::space_weight()
Move all in evaluation. Simplify the code and concentrate in a single place all the logic behind space evaluation, making it much more clear. Verified also at STC it does not regress due to a possible slow down: LLR: 3.91 (-2.94,2.94) [-3.00,1.00] Total: 65744 W: 13285 L: 13194 D: 39265 No functional change.
This commit is contained in:
@@ -39,7 +39,6 @@ namespace Material {
|
||||
struct Entry {
|
||||
|
||||
Score imbalance() const { return make_score(value, value); }
|
||||
Score space_weight() const { return spaceWeight; }
|
||||
Phase game_phase() const { return gamePhase; }
|
||||
bool specialized_eval_exists() const { return evaluationFunction != NULL; }
|
||||
Value evaluate(const Position& pos) const { return (*evaluationFunction)(pos); }
|
||||
@@ -61,7 +60,6 @@ struct Entry {
|
||||
uint8_t factor[COLOR_NB];
|
||||
EndgameBase<Value>* evaluationFunction;
|
||||
EndgameBase<ScaleFactor>* scalingFunction[COLOR_NB];
|
||||
Score spaceWeight;
|
||||
Phase gamePhase;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user