Losing a region to fog
- Updated Wednesday, December 24th 2014 @ 22:21:41
I've noticed a behavior where if a map is sufficiently configured such that a player is able to lose a region to an enemy and have it go into the fog, the player who lost the region will not get updated owner/army data in the UpdateMap command.
Example: http://theaigames.com/competitions/warlight-ai-challenge-2/games/549b0cbc4b5ab240b7148e6f
On round 11 player2 owns region 36, during round 11 player1 attacks (with 8 armies) and captures region 36. Region 36 is now in the Fog for player2 and the next UpdateMap command doesn't say anything has changed for that region.
Instead of nothing, can it return something like {region.id} fog 0 for the UpdateMap command? That way I can tell my bot not to try to reason about it :)
- Created Wednesday, December 24th 2014 @ 21:56:51
can you paste the Input/output dump here? i'm curious to see what is output in round 11
- Created Wednesday, December 24th 2014 @ 21:59:44
It also happens in this game in the third round. http://theaigames.com/competitions/warlight-ai-challenge-2/games/549b22e44b5ab240b7148fc2
Kurty bot captures region 5, it goes into the fog and then my bot gets stuck trying to reason about it because the region.owner string still matches the name of my bot.
- Updated Wednesday, December 24th 2014 @ 22:05:24
for nathsmith v tarassein Round 11
go place_armies 10000
Output from your bot: "player2 place_armies 10 5"
go attack/transfer 10000
Output from your bot: "player2 attack/transfer 10 25 3"
settings starting_armies 5
update_map 4 player2 2 5 player2 2 8 player2 2 10 player2 4 25 player2 2 30 player2 2 42 player2 2 46 player2 2 50 player2 2 57 player2 3 65 player2 2 67 player2 2 74 player2 2 76 player2 3 77 player2 4 79 player2 3 82 player2 2 2 neutral 2 3 neutral 2 53 neutral 2 28 neutral 2 56 neutral 2 6 neutral 2 11 neutral 2 26 neutral 2 12 neutral 2 35 neutral 10 29 neutral 10 27 neutral 10 13 neutral 2 31 neutral 10 22 neutral 2 43 player1 1 41 neutral 2 38 neutral 2 44 player1 6 61 player1 1 73 neutral 2 51 neutral 2 58 neutral 2 75 neutral 10 69 neutral 10 63 player1 6 68 neutral 2 72 player1 2 80 neutral 2 71 player1 3 52 neutral 10 78 neutral 2 81 player1 2
opponent_moves player1 place_armies 64 2 player1 place_armies 63 2 player1 place_armies 71 1 player1 attack/transfer 14 36 8 player1 attack/transfer 64 62 7
- Updated Wednesday, December 24th 2014 @ 22:07:12
for kurtybot v tarassein
Round 3
go place_armies 10000
Output from your bot: "player1 place_armies 4 5"
go attack/transfer 10000
Output from your bot: "player1 attack/transfer 4 20 3"
settings starting_armies 5
update_map 4 player1 4 17 player1 4 20 player1 2 21 player1 2 3 neutral 2 16 neutral 2 12 neutral 2 18 neutral 10 22 neutral 2 24 neutral 10 23 neutral 2
opponent_moves player2 place_armies 1 5 player2 attack/transfer 1 5 9
- Created Wednesday, December 24th 2014 @ 22:33:14
update map gives everything you can see. If I would include other regions in that as well it would be weird first of all, but secondly other bots would probably stop working. So you should build in something so that your bot knows if it doesn't get information about a region anymore, it doesn't own it.
- Created Wednesday, December 24th 2014 @ 22:56:12
Cool, I can do that.
I had assumed update_map was returning only [region,owner,troops] for regions that had been updated this round instead of the state of the visible map after calculations.