- Updated Saturday, May 10th 2014 @ 23:54:50
In that match, on round 5 Penelope (the enemy bot) attacks and captures Western Australia from my bot (nvaraschin). After that, my bot tries to put armies on that region, still thinking he owns it.
The output for Round 5, says:
go place_armies 2000
player2 place_armies 41 5
go attack/transfer 2000
player2 attack/transfer 11 10 3
settings starting_armies 5
update_map 3 player2 2 6 player2 1 10 player2 2 11 player2 1 13 player2 1 2 neutral 2 5 neutral 2 14 neutral 2 8 neutral 2 9 neutral 2 12 neutral 2
opponentmoves player1 placearmies 39 1 player1 placearmies 39 1 player1 placearmies 39 1 player1 placearmies 39 1 player1 placearmies 39 1 player1 attack/transfer 39 41 11
Western Australia is region 41, it is not listed on updatemap, but it is listed in opponentmoves. I have no way of knowing that the opponent successfully captures region 41 (update_map in round 6 doesn't show anything about this region).
So my bot thinks he owns Western Australia (region 41) because the engine doesn't tell him that it was captured.
Is this a bug or I am missing something??
- Updated Sunday, May 11th 2014 @ 15:54:56
If the engine doesn't give a region, it means you can't see it.
Somewhere along the way you have to keep track of the regions the engine gives you - and then set all those that weren't given to neutral/unknown/enemy. In this case you can set it to enemy-owned because you did own it before and therefore you can be sure that it was the enemy who took it from you.
- Created Sunday, May 11th 2014 @ 16:55:04
Ok, that makes sense! I'll try that.