Commit 4889834
committed
Add optional identifier to Limit instances
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` or `st` command to indicate the time control
at the start of the game, and then only `time` and `otim`
commands before each subsequent move to update the engine's
internal clocks. The `level` and `st` commands should only be
resent when the time control changes--like in FIDE tournament
time controls. During a single time control, the same `clock_id`
should be used for every Limit instance. This field has a similar
function to the `game` parameter of the `play()` method.1 parent 622f3a0 commit 4889834
2 files changed
Lines changed: 38 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
335 | 343 | | |
336 | 344 | | |
337 | 345 | | |
| |||
2001 | 2009 | | |
2002 | 2010 | | |
2003 | 2011 | | |
| 2012 | + | |
2004 | 2013 | | |
2005 | 2014 | | |
2006 | 2015 | | |
| |||
2202 | 2211 | | |
2203 | 2212 | | |
2204 | 2213 | | |
2205 | | - | |
2206 | | - | |
2207 | | - | |
2208 | | - | |
| 2214 | + | |
| 2215 | + | |
| 2216 | + | |
2209 | 2217 | | |
2210 | 2218 | | |
2211 | 2219 | | |
| |||
2217 | 2225 | | |
2218 | 2226 | | |
2219 | 2227 | | |
2220 | | - | |
2221 | | - | |
2222 | 2228 | | |
2223 | 2229 | | |
2224 | 2230 | | |
| |||
2270 | 2276 | | |
2271 | 2277 | | |
2272 | 2278 | | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
2273 | 2286 | | |
2274 | 2287 | | |
2275 | 2288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3713 | 3713 | | |
3714 | 3714 | | |
3715 | 3715 | | |
3716 | | - | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
3717 | 3719 | | |
3718 | 3720 | | |
3719 | 3721 | | |
| |||
3723 | 3725 | | |
3724 | 3726 | | |
3725 | 3727 | | |
3726 | | - | |
| 3728 | + | |
3727 | 3729 | | |
3728 | 3730 | | |
3729 | 3731 | | |
| 3732 | + | |
| 3733 | + | |
| 3734 | + | |
| 3735 | + | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
| 3745 | + | |
| 3746 | + | |
3730 | 3747 | | |
3731 | 3748 | | |
3732 | 3749 | | |
| |||
0 commit comments