- Created Sunday, March 23rd 2014 @ 20:18:03
I must have tried about 20 different ways to get my bot to only place armies adjacent to neutral or enemy regions but I just can't figure it out. I'm using the python starter bot. Could anyone point me in the right direction or show me how they did it? Thanks.
DeveloperCreated Sunday, March 23rd 2014 @ 20:21:45
You can loop through a Region's neighbours and check whether one of them has "owner" set to neutral. If not, don't place armies.
- Created Sunday, March 23rd 2014 @ 20:30:08
Thanks. I have been trying but I just end up breaking the bot. But at least I know I'm headed in the right direction
- Created Sunday, March 23rd 2014 @ 23:23:10
I finally got it a little while ago. For anyone else with the same problem try creating a function that tells you rather than sorting within the place armies or attack/transfer functions. Much simpler that way.