American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

5:00 PM – Python Object Oriented Programming – Sebastian

July 11, 2023 @ 5:00 pm - 6:00 pm

Today We Did
  1. Finished Monster System
  2. Finally understood why we have unique classes for monsters like Dragon and Troll (so they can handle magic attacks differently)
  3. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Name your homework however you’d like (you can just resubmit the original file from class), please submit by next Monday.
  2. Homework: Inside play_adventure method, add logic to remove monsters from the monster dictionary, or end the game for the player

    a. After you perform the magic or sword attach (outside of their if statements!), check if the monster’s health is below 0. If it is, then remove it and tell the player the monster exploded or something 😛

    b. Right after the above code, check if the player health is below 0. If it is, we should let the user know that they ran out of health and the game is over. If you want to exit out of the entire program, you can use exit()

Details

Date:
July 11, 2023
Time:
5:00 pm - 6:00 pm
Event Categories:
,
Verified by MonsterInsights