mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 11:06:58 +08:00
@@ -460,7 +460,7 @@ Phase Position::game_phase() const {
|
|||||||
|
|
||||||
npm = std::max(EndgameLimit, std::min(npm, MidgameLimit));
|
npm = std::max(EndgameLimit, std::min(npm, MidgameLimit));
|
||||||
|
|
||||||
return Phase(((npm - EndgameLimit) * 128) / (MidgameLimit - EndgameLimit));
|
return Phase(((npm - EndgameLimit) * PHASE_MIDGAME) / (MidgameLimit - EndgameLimit));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user