Add optional identifier to Limit instances #1003
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This new field in the Limit class is used to signal when the time control for a game has changed. XBoard engines expect to receive a
level
orst
command to indicate the time control at the start of the game, and then onlytime
andotim
commands before each subsequent move to update the engine's internal clocks. Thelevel
andst
commands should only be resent when the time control changes--like in FIDE tournament time controls. During a single time control, the sameclock_id
should be used for every Limit instance. This field has a similar function to thegame
parameter of theplay()
method.Issue with previous discussion: #742