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.69k stars 375 forks source link

Adventure map, AI hero doesn't capture a castle in just 1 step #9130

Open Branikolog opened 3 days ago

Branikolog commented 3 days ago

Preliminary checks

Describe the problem requiring a solution

Based on a feedback from a player. Map

AI stays just in fron of the castle, has significant army and hero strength advantage, but decides not to attack and run away.

https://github.com/user-attachments/assets/8170ad98-dcf5-4d5b-8f34-0676cb4da885

What_1.zip

Describe the possible solution

I suppose AI just decided to proceed more urgent task in this case, but I expect enemy be able to waste a few movement points for castle capturing or hero attacking before he proceeds making his current task.

Additional info

No response

LeHerosInconnu commented 3 days ago

Hello @Branikolog,

This is the AI's strategy for forcing the human player to waste his gold on recruiting creatures to defend his castle, even though the AI never had any intention of actually attacking this castle. :D

Edit: Cunning and vicious, almost pervert. 😎

Branikolog commented 3 days ago

Hi, @LeHerosInconnu ! It's one nice strategy. There could also be anothe strategy in this case to stand in front of the castle, so player couldn't go out. :)

oleg-derevenetz commented 3 days ago

In this case, yellow heroes are rushing to eliminate the red hero that is considered as threating to two yellow castles at once. However, this red hero has a relatively weak army (just a few boars), so probably it's not really so dangerous, but the current threat assessment mechanism considers any enemy hero approaching the castle as a potential threat.