VedVid / untitled-strategy-game

Small strategy game, inspired by Into The Breach
Other
2 stars 1 forks source link

Rewrite AI #24

Closed VedVid closed 1 year ago

VedVid commented 1 year ago

Current implementation will work with attack_punch only.

The problem lies in gather_map_info method.

While the foundations are OK (find path to every potential target, calculate priority taking into account base target priority and range falloff), everything falls apart later.

E.g. with current approach it is difficult to calculate what position monster can take when using 3-tiles wide attack.

..X..
.MX..
..X..
VedVid commented 1 year ago

Fixed by 4cc3ad5daf249723ccbe606e4d1618806619a26a