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:
Marco Costalba
2011-06-27 10:07:57 +01:00
parent 9305983018
commit c9b24c3358
5 changed files with 75 additions and 94 deletions

View File

@@ -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; }