ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.7k stars 375 forks source link

Documentation for in-fight AI system #5713

Closed ghost closed 2 years ago

ghost commented 2 years ago

Your question

Hi. I'm interested at improving the in-fights AI and would like to have some guidance at where to look in codebase. Ideally, and IRC channel or something I can reach with a bridge, and some documentation, even WiP.

Combat AI still have the old HoMM2 problems imo, at it still does basic tactical mistakes the child I was could consider stupid back in time. I have not played this since decades, except for the few games I had those last weeks, so I'm likely missing tactics, but it's still too easy, so I think I should be able to fix various issues. This particular side of AI would merit it's own tag, it would help if I really go in hacking this.

Additional info

When looking at open issues, I see those are related to this problem:

ihhub commented 2 years ago

Hi @bmorel , you can look at ai_normal_battle.cpp file for AI action during battle. You can also join our Discord server for discussions about the development.

ihhub commented 2 years ago

I am moving this issue into discussion section.