I would like to give some feedback about ...
From: https://py.checkio.org/mission/army-battles/solve/
army1 = Army()
army2 = Army()
army1.addunits(Warrior, 20)
army2.addunits(Warrior, 21)
battle = Battle()
battle.fight(army1, army2)
Your result:
false
Right result:
true
This is wrong: army2 has one more Warrior unit than army1 and will therefore win the battle. The right result is False
According to mission info:
"...In this case, the battle() function should return True, if the first army won, or False, if the second one was stronger."
Created at: 2018/10/04 22:48; Updated at: 2018/10/05 06:14