mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 09:37:16 +08:00
Use self-describing constants instead of numbers
And remove now useless comments. No functional change.
This commit is contained in:
@@ -52,9 +52,9 @@ public:
|
||||
private:
|
||||
Key key;
|
||||
int16_t value;
|
||||
uint8_t factor[2];
|
||||
uint8_t factor[COLOR_NB];
|
||||
EndgameBase<Value>* evaluationFunction;
|
||||
EndgameBase<ScaleFactor>* scalingFunction[2];
|
||||
EndgameBase<ScaleFactor>* scalingFunction[COLOR_NB];
|
||||
int spaceWeight;
|
||||
Phase gamePhase;
|
||||
};
|
||||
@@ -67,7 +67,7 @@ struct MaterialTable {
|
||||
|
||||
MaterialEntry* probe(const Position& pos);
|
||||
static Phase game_phase(const Position& pos);
|
||||
template<Color Us> static int imbalance(const int pieceCount[][8]);
|
||||
template<Color Us> static int imbalance(const int pieceCount[][PIECE_TYPE_NB]);
|
||||
|
||||
HashTable<MaterialEntry, MaterialTableSize> entries;
|
||||
Endgames endgames;
|
||||
|
||||
Reference in New Issue
Block a user