- Created Wednesday, March 19th 2014 @ 12:47:03
Hi all! May be I dont understand something, but I have this issue with my bot. On attacking stage bot did not see his own armies placements that were placed in current round. For example, it was 2 armies in Argentina, at round 1 bot places 5 armies there, but on attack stage the BotState object contains still 2 armies at Argentina. What am I doing wrong? Bot is on Java. Thanks for answers!
DeveloperUpdated Wednesday, March 19th 2014 @ 13:33:40
The "update_map" command doesn't occur between "place_armies" and "attack/transfer". You will have to update the correct amount yourself in this case.
- Created Wednesday, March 19th 2014 @ 13:36:01
Is this normal behavior or it will be fixed?
DeveloperCreated Wednesday, March 19th 2014 @ 13:41:58
As of this moment this behavior is intended.
- Created Saturday, March 29th 2014 @ 04:29:46
I ran into the same "issue" with my bot; it's pretty easy to fix.
Each time I give an order to deploy armies to a territory, I also increment the number of armies variable for that territory by the number of armies deployed.
I'm using the C# starter bot so I don't have the Java bot variable names, but it should be a single line of code where you deploy armies. (Of course, you also need to make sure you aren't giving invalid army deployment orders or your state won't be correct.)
- Created Saturday, March 29th 2014 @ 15:44:31
Thanks, nagromo! Sure I do the same things :) Just strange that it's not automatic behavior...
- Updated Monday, March 31st 2014 @ 00:00:34
It seems things append in the good order :
First, you get the map (update_map) at the beginning of the turn.
Then, each bot sends orders (place, then move) without knowing what the opponent is doing, that's why you cannot get updated map before the next turn. You will know opponent places and moves only after sending all your orders !
This way, your bot can simply deduct the armies he placed, but he can just "guess" where the opponent places/moves his armies.
- Created Sunday, March 30th 2014 @ 23:18:22
I used the java starter not and before I return the Arraylist of PlaceArmyMoves, I loop through it and add the number of armies to the region.