American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

5:30 PM – Python OOP – Gamas

January 5 @ 5:30 pm - 6:30 pm

Today We Did
  1. We continued on Monster Inheritance. We get as far as displaying the magic attack menu.
Homework
  1. Try to continue adding more codes for Monster Inheritance by following the behavior below. Also you need
  2. Please select one of following
    1. Add Monster
    2. List all monsters
    3. Play adventure
    Enter your selection (enter "exit" to quit): 2
    Cyclops - 60 health - 30 max attack
    Troll - 50 health - 15 max attack
    Dragon - 100 health - 20 max attack
    
    Please select one of 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: 80
    You have added Unicorn into our system.
    
    Please select one of following
    1. Add Monster
    2. List all monsters
    3. Play adventure
    Enter your selection (enter "exit" to quit): 2
    Cyclops - 60 health - 30 max attack
    Troll - 50 health - 15 max attack
    Dragon - 100 health - 20 max attack
    Unicorn - 80 health - 80 max attack
    
    Please select one of following
    1. Add Monster
    2. List all monsters
    3. Play adventure
    Enter your selection (enter "exit" to quit): 3
    
    Play Adventure
    Enter your name: Gamas
    Enter player's health: 100
    
    Hi, Gamas, welcome to the AYC Logic Adventure Game
    
    Gamas you have 100 health remaining.
    Please choose your monster
    Cyclops - 60 health - 30 max attack
    Troll - 50 health - 15 max attack
    Dragon - 100 health - 20 max attack
    Unicorn - 80 health - 80 max attack
    Enter your selection (enter 'stop' to quit the game): dragon
    
    What kind of attack do you want?
    1. Magic attack
    2. Sword attack - 10 to 20 damage
    Please enter your selection: 1
    
    What type of magic attack do you want to use:
    1. Fire magic - 15 damage
    2. Water magic - 15 damage
    3. Air magic - 10 damage
    4. Earth magic - 18 damage
    Please enter your selection: 1
    You attacked Dragon with 15 damage and the Dragon has 85 health remaining
    Gamas took 7 damage
    
    Gamas you have 93 health remaining.
    Please choose your monster
    Cyclops - 60 health - 30 max attack
    Troll - 50 health - 15 max attack
    Dragon - 85 health - 20 max attack
    Unicorn - 80 health - 80 max attack
    Enter your selection (enter 'stop' to quit the game): troll
    
    What kind of attack do you want?
    1. Magic attack
    2. Sword attack - 10 to 20 damage
    Please enter your selection: 2
    Troll took 17 damage
    Gamas took 5 damage
    
    Gamas you have 88 health remaining.
    Please choose your monster
    Cyclops - 60 health - 30 max attack
    Troll - 33 health - 15 max attack
    Dragon - 85 health - 20 max attack
    Unicorn - 80 health - 80 max attack
    Enter your selection (enter 'stop' to quit the game):

Details

Date:
January 5
Time:
5:30 pm - 6:30 pm
Verified by MonsterInsights