American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP – Latisha

January 5, 2023 @ 7:00 pm - 8:00 pm

Today We Did
  1. We reviewed Class, Inheritance, methods, __init__.
  2. We reviewed how to override parent’s class method.
  3. We continued with AdventureGame project by adding “1. Add New Monster”
Homework
  1. Continue with AdventureGame project. Add code so it will do the following
    1. When the program first starts, add the following monsters automatically to the monster_dictionary
      1. Dragon – 100 health – 50 Max attack
      2. Troll – 50 health – 20 Max attack
      3. Water Golem – 30 health – 20 Max attack
      4. Cyclops – 60 health – 30 Max attack
    2. Add code to do “2. List all monsters” like below
    3. Welcome to AYC Logic Adventure Game
      
      Main Menu
      1. Add Monster
      2. List all monsters
      3. Play Adventure
      4. Exit
      Enter your selection: 2
      Dragon - 100 health - 50 Max attack
      Troll - 50 health - 20 Max attack
      Water Golem - 30 health - 20 Max attack
      Cyclops - 60 health - 30 Max attack
      
      Main Menu
      1. Add Monster
      2. List all monsters
      3. Play Adventure
      4. Exit
      Enter your selection: 1
      
      ADD NEW MONSTER
      Enter monster species: Hydra
      Enter monster health: 80
      Enter monster max attack: 40
      You have succesfully added Hydra to our system.
      
      Main Menu
      1. Add Monster
      2. List all monsters
      3. Play Adventure
      4. Exit
      Enter your selection: 2
      Dragon - 100 health - 50 Max attack
      Troll - 50 health - 20 Max attack
      Water Golem - 30 health - 20 Max attack
      Cyclops - 60 health - 30 Max attack
      Hydra - 80 health - 40 Max attack
      
      Main Menu
      1. Add Monster
      2. List all monsters
      3. Play Adventure
      4. Exit
      Enter your selection:

Details

Date:
January 5, 2023
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights