Page 1 of 1
Forbidden hexes
Posted: Sun May 01, 2022 9:03 am
by CHINCHIN
It seems that the AI only takes into account the final destination, and not the path to follow. In the first drawing Finland is at peace with the USSR, and by passing through those two forbidden hexes they gain control of them. In the second drawing the control of the UK hexagon does not change, but it does go through it.

- WP move.jpg (74 KiB) Viewed 295 times
However if you try to move directly into those forbidden hexes you can't.
Re: Forbidden hexes
Posted: Mon May 02, 2022 1:00 am
by AlvaroSousa
I'll look into it. The path finding is very complex.
Re: Forbidden hexes
Posted: Mon May 23, 2022 9:08 pm
by AlvaroSousa
The A.I. uses the same formulas as the humans on path finding.
The Finnish situation is a bit tougher as to how the code was originally structured. Some variables I forgot to take into account since there are so many.
Like the "Hey that's my stuff that you now control, but we aren't fighting over it, but I am very mad about it" variable.
I think I got it now though.