American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

10 AM – Python OOP – Indo – Gamas

December 9, 2023 @ 10:00 am - 11:00 am

Today We Did
  1. We finished Library System project.
    1. We reviewed the homeworks.
    2. We added list all old books
  2. We started Monster Inheritance project
Homework
  1. Continue on Monster Inheritance project like below. Just do
    1. Add Monster
    2. List all monsters.
  2. When the program first starts, the system need to have immediately 4 monsters: Dragon, Troll, Water Golem and Cyclops. Look at each of these monsters data in the example below. Remember, these monsters is automatically there when you start your program.
  3. Please select one of the following
    1. Add Monster
    2. List all monsters
    3. Play Adventure
    Enter your selection (Enter 'exit' to quit): asdf
    Invalid selection, please try again
    
    Please select one of the following
    1. Add Monster
    2. List all monsters
    3. Play Adventure
    Enter your selection (Enter 'exit' to quit): 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
    
    Please select one of the following
    1. Add Monster
    2. List all monsters
    3. Play Adventure
    Enter your selection (Enter 'exit' to quit): 1
    
    ADD MONSTER
    Enter monster species: Unicorn
    Enter monster health: 80
    Enter monster max_attack: 70
    You have added Unicorn into our system.
    
    Please select one of the following
    1. Add Monster
    2. List all monsters
    3. Play Adventure
    Enter your selection (Enter 'exit' to quit): 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
    - Unicorn - 80 health - 70 Max attack
    
    Please select one of the following
    1. Add Monster
    2. List all monsters
    3. Play Adventure
    Enter your selection (Enter 'exit' to quit):

Details

Date:
December 9, 2023
Time:
10:00 am - 11:00 am
Verified by MonsterInsights