American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5 PM – Python OOP – Bill

May 1, 2023 @ 5:00 pm - 6:00 pm

Your HW:
  1. Create a new file “monster.py”
    1. create a monster class with attributes: species, health, attack
  2. Create a new class in the main called MonsterSystem
    1. Attributes:
      1. monster_dictionary
    2. Methods:
      1. load_monsters
        1. Troll – 20 health – 10 max damage
          Golem – 50 health – 20 max damage
          Dragon – 100 health – 25 max damage
      2. main_loop
      3. get_response_from_monster_menu
        1. Like the get_response_from_menu from GrocerySystemV4

Details

Date:
May 1, 2023
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights