|
||||
Title: Bot Interface Gamestate file Post by jdb on Nov 22nd, 2008, 12:42pm I need some help understanding the bot interface gamestate file. When playing a game using the continuous tournament time control, 60s/5m/75/0/4h/4m the gamestate file does not report the current reserve time of the side to move properly. For example if the bot is playing gold, tcbreserve will show the proper reserve for the opponent, tcwreserve is capped at 180. Is tcturntime the max time allowed for one move? If so, then it should be ok to have tcwreserve report the full value even if it is over 180 seconds. |
||||
Title: Re: Bot Interface Gamestate file Post by Janzert on Nov 22nd, 2008, 3:41pm Interesting I had never noticed this since I basically always use min(reserve, turntime) for most everything. Janzert |
||||
Title: Re: Bot Interface Gamestate file Post by 99of9 on Nov 23rd, 2008, 1:21am on 11/22/08 at 12:42:28, jdb wrote:
Unfortunately changing this will break previous versions of gnobot. Perhaps another solution is to pass a new variable with the full reserve time (tcwfullreserve, tcbfullreserve). |
||||
Title: Re: Bot Interface Gamestate file Post by aaaa on Nov 23rd, 2008, 4:33am on 11/22/08 at 12:42:28, jdb wrote:
This is exactly how things work with the game client, so this is most likely done so that the client always shows the hard time-per-move limit. on 11/23/08 at 01:21:12, 99of9 wrote:
Of course, since us humans would also like to be always able to see what our reserve beyond this is (and not just when it's not our turn), I'll add in an additional request to make the client also display the contents of such variables. |
||||
Title: Re: Bot Interface Gamestate file Post by jdb on Nov 23rd, 2008, 5:51am on 11/23/08 at 01:21:12, 99of9 wrote:
Sounds good to me. |
||||
Title: Re: Bot Interface Gamestate file Post by omar on Nov 26th, 2008, 6:38am on 11/22/08 at 12:42:28, jdb wrote:
Yes, tcturntime is the max time allowed for one move. This parameter was not in the original time control specs and was introduced later. To allow older bots and UI clients to handle such time controls without any changes, I overloaded tc?reserve such that if the actual reserve is greater than tcturntime it is set to tcturntime. However, it does end up masking the amount of actual reserve time left when it is greater than tcturntime. If you need it I can add another parameter to show it. |
||||
Title: Re: Bot Interface Gamestate file Post by jdb on Nov 26th, 2008, 7:13am on 11/26/08 at 06:38:50, omar wrote:
It would be nice information to have available, if its not too much trouble. Thanks |
||||
Title: Re: Bot Interface Gamestate file Post by omar on Dec 21st, 2008, 5:24pm I added a tcwreserve2 and tcbreserve2 parameter that shows the actual reserve time even if tcwreserve and tcbreserve are less due to tcturntime being set. |
||||
Title: Re: Bot Interface Gamestate file Post by jdb on Dec 22nd, 2008, 10:39am I tried out the new parameters. A couple of notes. 1) The gamestate file only contains the tcXreserve2 entry for the side to move. This is enough info, since the tcYreserve (for the other colour) contains the full reserve value. 2) The tcXreserve2 entry is always blank in the gamestate file. |
||||
Title: Re: Bot Interface Gamestate file Post by omar on Dec 23rd, 2008, 8:08pm Yes, currently the tcXreserve2 parameter is only set if tcXreserve will be modified. Would you like it to always be set? |
||||
Title: Re: Bot Interface Gamestate file Post by jdb on Dec 23rd, 2008, 9:49pm Yes, it should always be set. If it is set conditionally, it makes the gamestate file info harder to parse. |
||||
Title: Re: Bot Interface Gamestate file Post by omar on Dec 24th, 2008, 7:39am OK I've changed it to always be present. |
||||
Title: Re: Bot Interface Gamestate file Post by jdb on Dec 24th, 2008, 8:29am Now, tcbreserve2 and tcwreserve2 are always present, but both are still blank. Code:
|
||||
Title: Re: Bot Interface Gamestate file Post by omar on Jan 1st, 2009, 10:11am Sorry, typo in the variable name it was being set from. Should be OK now. |
||||
Arimaa Forum » Powered by YaBB 1 Gold - SP 1.3.1! YaBB © 2000-2003. All Rights Reserved. |