American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python OOP – Gamas

March 15, 2023 @ 6:00 pm - 7:00 pm

Homework
  1. Continue on MonsterInheritance project
  2. Create a method initialize_monsters. In here, you want to automatically add 3 monsters in the beginning and call this when you start the program.
    1. Dragon – 100 health – 100 max damage
    2. Troll – 75 health – 50 max damage
    3. Water Golem – 50 health – 50 max damage
  3. After user enter “3” for Start Adventure, continuously display the adventure menu until user enter “exit”.
  4. Welcome to AYC Logic adventure game
    1. Add new monster
    2. List all monsters
    3. Start adventure
    Please make your selection. Enter "quit" to exit: 3
    
    Enter player's name: Gamas
    Enter player's health: 100
    
    Gamas welcome to AYC Logic Adventure game.
    You have 100 health remaining
    
    Please choose which monster to fight: 
    Dragon health - 100 max damage - 100
    Troll health - 75 max damage - 50
    Enter your selection (enter 'exit' to quit): 
    
    
    Gamas have 200 health remaining.
    Please choose your monster: 
    Troll - 50 healths - 30 Max attack points.
    Water Golem - 30 healths - 20 Max attack points.
    Dragon - 100 healths - 50 Max attack points.
    Enter your selection (enter "exit" to quit): adfs
    You have entered an invalid selection. Please try again
    
    Gamas have 200 health remaining.
    Please choose your monster: 
    Troll - 50 healths - 30 Max attack points.
    Water Golem - 30 healths - 20 Max attack points.
    Dragon - 100 healths - 50 Max attack points.
    Enter your selection (enter "exit" to quit): asdf
    You have entered an invalid selection. Please try again
    
    Gamas   have 200 health remaining.
    Please choose your monster: 
    Troll - 50 healths - 30 Max attack points.
    Water Golem - 30 healths - 20 Max attack points.
    Dragon - 100 healths - 50 Max attack points.
    Enter your selection (enter "exit" to quit): ads
    You have entered an invalid selection. Please try again
    
    Gamas have 200 health remaining.
    Please choose your monster: 
    Troll - 50 healths - 30 Max attack points.
    Water Golem - 30 healths - 20 Max attack points.
    Dragon - 100 healths - 50 Max attack points.
    Enter your selection (enter "exit" to quit): exit
    
    Welcome to AYC Logic adventure game
    1. Add new monster
    2. List all monsters
    3. Start adventure
    Please make your selection. Enter "quit" to exit:

Details

Date:
March 15, 2023
Time:
6:00 pm - 7:00 pm
Event Categories:
,
Verified by MonsterInsights