Problem 0 (0pts): About the Game
Answer the following questions after you have read the entire ants.py
file, to guarantee you have the right understanding about the game.
python ok -q 00 -u
If you get stuck while answering these questions, you can try reading through ants.py
again,
consult the core concepts or core classes sections above.
- What is the significance of an Insect's
health
attribute? Does this value change? If so, how? - Which of the following is a class attribute of the
Insect
class? - Is the
health
attribute of theAnt
class an instance attribute or a class attribute? Why? - Is the
damage
attribute of anAnt
subclass (such asThrowerAnt
) an instance attribute or class attribute? Why? - Which class do both
Ant
andBee
inherit from? - What do instances of Ant and instances of Bee have in common?
- How many insects can be in a single
Place
at any given time (before Problem 8)? - What does a
Bee
do during one of its turns? - When is the game lost?
Remember to run:
python ok -q 00 -u