- Created Wednesday, December 17th 2014 @ 04:12:17
When you receive the list of opponent_moves and it has an attack eg player2 attack/transfer 28 29 6 how do you know if that attack was successful? If they just attacked my region #29 I don't know if I still own that region or not when I go to place my armies. I had a problem where I placed a bunch on #29 to be told later it was invalid and so I lost them all for that round.
- Created Wednesday, December 17th 2014 @ 05:00:36
You can tell what happened when you get update_map. If you don't see an update for a country you owned in the last turn you must have lost it.
- Updated Wednesday, December 17th 2014 @ 10:18:45
Thats fine for future rounds, but you have to place armies between the opponents attacks and the next update map. if there was an update_map after each opponent_moves as well, that would solve the problem.
- Updated Wednesday, December 17th 2014 @ 10:18:26
Hang on... are we supposed to actually apply the opponent_moves to the map or are they already taken into account in the previous update_map?
- Created Wednesday, December 17th 2014 @ 10:18:30
The opponent moves are already taken into account in the updatemap for each round. Since there is an element of luck to attack results, it's impossible to apply the results of the enemy moves yourself.
You technically don't need to use opponentmoves at all to make a decent bot. It's useful for seeing how many troops they deployed where (keeping track of their maximum observed income) and watching where they transfer troops or attack to guess what areas of the map they're prioritizing.