American Young Coder Academy – Indo

Loading Events

« All Events

  • This event has passed.

6 PM – Python OOP – Shawn

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

Today We Did
  1. We continued creating the main.py for MonsterInheritance project.
    1. Added sword attack
    2. Continued on start game
Homework
  1. Create file called Jul28_InheritanceHW.py and do 9-6 and 9-7 on page 173 in the textbook.
  2. Continue with MonsterInheritance main.py and finish sword_attack:
    1. Get a random attack value from the Monster between 5 and the monster’s max attack
    2. Subtract your health (self.health) by that value
    3. Print out a statement describing what just happened (example: “Troll just attacked you with 15 damage. Your remaining health is 59”)

Details

Date:
July 28, 2023
Time:
5:00 pm - 6:00 pm
Verified by MonsterInsights