mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Restore startpos_ply_counter() instead of full_moves()
And pass correct currentPly to TimeManager::init(). This restores old behaviour, in particular now black has a different timing than white becuase is no more: currentPly = 2 * fullMoveNumber; but becomes 2 * (fullMoves - 1) + int(sideToMove == BLACK) No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -25,7 +25,7 @@ struct SearchLimits;
|
||||
class TimeManager {
|
||||
public:
|
||||
|
||||
void init(const SearchLimits& limits, int fullMoveNumber);
|
||||
void init(const SearchLimits& limits, int currentPly);
|
||||
void pv_instability(int curChanges, int prevChanges);
|
||||
int available_time() const { return optimumSearchTime + unstablePVExtraTime; }
|
||||
int maximum_time() const { return maximumSearchTime; }
|
||||
|
||||
Reference in New Issue
Block a user