ihhub/fheroes2

AI heroes should retreat more often if the battle outcome is obvious

Open

#7,344 opened on Jun 19, 2023

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C++ (469 forks)auto 404
AIaihelp wantedimprovement

Repository metrics

Stars
 (3,415 stars)
PR merge metrics
 (PR metrics pending)

Description

Preliminary checks

Describe the problem requiring a solution

AI heroes do not retreat during very obvious cases when they would definitely lose. Retreating from a battle is more beneficial than just give the opponent to win because the opponent would have more experience at the end.

Describe the possible solution

We need to add more conditions that even even weakest AI heroes should escape if there is nothing much to do during the battle.

Additional info

No response

Contributor guide