- Updated Sunday, December 14th 2014 @ 15:02:39
I got a bit confused about how the new Timebank feature worked out.
As I understand it, you get a bank that you use to determine your current time left, and gives you time per move as well. When making moves, each round you get a more time that can be used. When a new round has commenced, you get to place and move your armies, but it also gives you time as well that you have left.
What does this Timebank do? How is it used`? Where should we use it? How is time per move used?
The first timebank is the initial value, and the time per move is how much extra time you get each time you do anything(placing, moving, attacking, etc). Each time you are told to do a move, you get how much time you got left.
Player got 1000 in his timebank Player got 100 for placing armies and payed 50 Player got 100 for moving and payed 100 Player have 1050 in his timebank
Is this correct? I saw in the test bot log that it never updated the values, so I'm not sure on that one either(Unless my bot was too fast, which I highly doubt).
Edit: Could it be that the timebank set at the start is the absolute maximum you can get for each move in total?
DeveloperCreated Monday, December 15th 2014 @ 10:17:57
You are right with everything, so you answered your own question I guess. If you see 10000 every time, that means your bot answers within the time per move value of 500ms each time. The 10000 is the maximum time you can spend on one move, and it is also the starting value of the time bank.
For more information you should check out the rules page of Heads Up Omaha, there it is explained a bit more in detail than on the Warlight AI Challenge 2 page.
- Created Monday, December 22nd 2014 @ 20:15:19
So, in other words, since the maximum time you can spend on one move is already given per round, at the maximum amount, the timebank is completely useless in this challenge? Or is it going to be modified after the beta, starting with xx.xxx MS, adding xxxMS per round?
It's a big difference, if it's always going to be 10 seconds (!) i'm definitly not going to build it in to make it dynamic. If it starts lower at a certain point in the challenge, then I need to adjust my bot in time.
- Created Monday, December 22nd 2014 @ 21:40:10
It is not always 10 seconds, the timebank is capped at 10 seconds. If you use 5.5 seconds on turn 1, you only have 5 seconds left in your timebank for turn two (plus the amount you could use that turn anyway).
So if you had a critical turn, you could really invest a lot of time from the timebank, but you'll have to come by with only the turn time the following turns (but you can save up again).
- Created Monday, December 22nd 2014 @ 22:52:22
well, yeah, that's the main idea of the timebank. but at this moment, either my bot is super-awesome-freakingly-fast, or the time is always 10.000MS / 10 seconds. and since i can only see 10000 in my logfiles, i suspect the latter...
- Updated Monday, December 22nd 2014 @ 23:12:25
Ah, but you additionally get 500ms every single turn (settings time_per_move 500). It only goes off of your timebank if you take more than half a second (otherwise the remaining time gets added to your timebank).
- Created Tuesday, December 23rd 2014 @ 00:56:30
yep, you're right. while programming i stumbled upon an infinite loop which caused a timeout. times 2 == strike out, no more moves :(