fheroes2
fheroes2 copied to clipboard
Combat, AI behavior, in instant and automatic combat modes, the AI causes troops to be lost when the combat could be won without loss (0.9.7 4208)
Preliminary checks
- [X] I've checked that there aren't other open issues on the same topic.
Describe the problem requiring a solution
In fheroes2, in instant and automatic combat modes, the AI causes troops to be lost when the combat could be won without loss.
In fheroes2:
AI:
https://user-images.githubusercontent.com/43583994/134773746-924da271-7095-4a74-b3f3-3ef3d00ac619.mp4
Player:
https://user-images.githubusercontent.com/43583994/134773772-311ad94b-bde1-4897-aff6-33baa712f2e9.mp4
AI:
https://user-images.githubusercontent.com/43583994/134773881-96cba61a-5e17-44b8-9e7e-6859d197a609.mp4
Player:
https://user-images.githubusercontent.com/43583994/134773866-e93c7aca-c880-4e27-a0a5-4ac5045b6f90.mp4
Here are the save files: AI instant combat bad choice.zip
Describe the possible solution
Make the AI smarter. :D
Additional info
No response
Another save for this (1.0.12 8369): Before instant combat 01.zip
In fheroes2:
https://github.com/ihhub/fheroes2/assets/43583994/22ab8f91-86d7-4373-9259-f1858cdc676c
Another save for this (1.0.12 8369): Before instant combat 01.zip
In fheroes2:
2024-02-08.14-40-01.mp4
@LeHerosInconnu. I see that the point here is that the enemy hero shouldn't be allowed to retreat, which is a bit different from what the issue title describes. Perhaps it should be a separate issue?
@zenseii,
Another save for this (1.0.12 8369): Before instant combat 01.zip In fheroes2: 2024-02-08.14-40-01.mp4
@LeHerosInconnu. I see that the point here is that the enemy hero shouldn't be allowed to retreat, which is a bit different from what the issue title describes. Perhaps it should be a separate issue?
I think both could be solved at the same time, because it's a question of teaching the AI to take into account the speed of opposing troops in the attack order of its troops, so as to leave the opponent no chance when possible. :) But if you think it should be separate, let me know and I'll open a separate issue.