Light Mode
Dark Mode
Test Error?

In test number 5:

army1 = Army() army2 = Army() army1.addunits(Warrior, 10) army2.addunits(Warrior, 11) battle = Battle() battle.fight(army1, army2) Your result: false Right result: true

Pardon me if I'm wrong but the right result should be false since the first army will not survive against a bigger army, even if it attacks first. and the function returns True only if the first army wins.

Created: Dec. 7, 2018, 4:51 a.m.
Updated: Aug. 24, 2022, 5:30 p.m.
1
11
User avatar
zerofodao