P.S. If this program is useful to any newbie, I will be happy.
Added after 2 hours 59 minutes
As a result, we get different data for each slot of hero1 against each slot of hero2: damage, how many will be killed, in how many hits, retaliatory damage, etc.
In this case, a single unit takes retaliatory damage, the second (main) unit deals an unreturned blow, while blocking the archers (half damage when blocked). How will your algorithm predict the battle tactics? Will it declare the grand elves the winner?
