American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5 PM – Python OOP – Bill

July 26, 2022 @ 5:00 pm - 6:00 pm

Today We:
  1. Continued the Monster System project
  2. Reviewed HW
  3. Created a player health attribute
  4. Created a monsters dictionary attribute
  5. Created a load_monsters method to fill the monsters dictionary
  6. Created a basic main loop
  7. Created a get_main_menu_response method
  8. Made it print out each monster’s health and attack and get the user input
Your HW:
  1. If the user selects a valid monster, ask the user for which type of attack they want to use:
  2. If the user enters 2, subtract from the Selected Monster’s health a random number between 10 and 20
    What do you want to do with the {Selected Monster}
    
    1. Magic attack
    
    2. Sword attack - 10 to 20 damage
    
    Enter your selection:

Details

Date:
July 26, 2022
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights