- This event has passed.
5 PM – Python OOP – Bill
May 1, 2023 @ 5:00 pm - 6:00 pm
Your HW:
- Create a new file “monster.py”
- create a monster class with attributes: species, health, attack
- Create a new class in the main called MonsterSystem
- Attributes:
- monster_dictionary
- Methods:
- load_monsters
- Troll – 20 health – 10 max damage
Golem – 50 health – 20 max damage
Dragon – 100 health – 25 max damage
- Troll – 20 health – 10 max damage
- main_loop
- get_response_from_monster_menu
- Like the get_response_from_menu from GrocerySystemV4
- load_monsters
- Attributes: