I would like to give some feedback about ...
From: https://py.checkio.org/mission/army-battles/solve/
HTTP_USER_AGENT:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
One of the tests is the following and the expected result is true.
Though army1 gets to strike first, how will it be possible for army1 to win with only 10 warriors?
I am not sure how to approach this.
Thanks.
army_1 = Army()
army_2 = Army()
army1.addunits(Warrior, 10)
army2.addunits(Warrior, 11)
battle = Battle()
battle.fight(army1, army2)
Created at: 2020/09/11 12:38; Updated at: 2020/09/11 15:10
The question is resolved.