ihhub/fheroes2

AI: maximize total loss for opponent in case of battle loss

Offen

#8.775 geöffnet am 30.05.2024

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C++ (469 Forks)auto 404
AIaihelp wantedimprovement

Repository-Metriken

Stars
 (3.415 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Preliminary checks

Describe the problem requiring a solution

While defencing, computer is trying to kill titans as his aim №1, but it results in 0 killed titans: https://github.com/ihhub/fheroes2/assets/145407420/57c1622c-e657-4a81-95d2-cb42abd2e440

Attacking every other creature would make purple player to have more killed troops, for example, I attack rocs:

https://github.com/ihhub/fheroes2/assets/145407420/e1c696ca-b50d-4661-a472-89b8afe707a0

Describe the possible solution

if we lose the battle, try to do maximum damage as we can

Additional info

version 1.1.0

improve battle do max damage.zip

Contributor Guide