mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Assume input FEN string is correct in from_fen()
And also tolerate a 0 value for full move number. Revert BUG_41 patch, now we set initial King file only if a castling is possible, so we don't need the fix anymore in case of correct FEN. 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 currentPly);
|
||||
void init(const SearchLimits& limits, int fullMoveNumber);
|
||||
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