Problem 6 (200pts): Wall Ant
We are going to add some protection to our glorious home base by implementing the WallAnt
,
which is an ant that does nothing each turn. A WallAnt
is useful because it has a large health
value.
Class | Food Cost | Health | |
---|---|---|---|
WallAnt | 4 | 4 |
Unlike with previous ants, we have not provided you with a class header. Implement the WallAnt
class from scratch.
Give it a class attribute name
with the value 'Wall'
(so that the graphics work) and a class attribute implemented
with the value True
(so that you can use it in a game).
Before
Before writing any code, read the instructions and test your understanding of the problem:
python ok -q 06 -u
After
After writing code, test your implementation:
python ok -q 06