Problem 9 (250pts): Tank Ant
The BodyguardAnt
provides great defense, but they say the best defense is a good offense. The TankAnt
is a container that protects an ant in its place and also deals 1 damage to all bees in its place each turn.
Class | Food Cost | Health | |
---|---|---|---|
TankAnt | 6 | 2 |
You should not need to modify any code outside of the TankAnt
class. If you find yourself needing to make changes elsewhere, look for a way to write your code for the previous question such that it applies not just to BodyguardAnt
and TankAnt
objects, but to container ants in general.
Before
Before writing any code, read the instructions and test your understanding of the problem:
python ok -q 9 -u
After
After writing code, test your implementation:
python ok -q 9