American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6:30 PM – Python OOP – Sebastian

June 26 @ 6:30 pm - 7:30 pm

Today we did

  1. Small review on inheritance
  2. Organized our code into methods in monster project
  3. Started the sword attack method
  4. AYC Logic’s observed holidays: https://www.ayclogic.com/observed-holidays/
  5. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Please submit your homework into your Google Drive and name it “JUN26_hw.py”, just upload the entire main.py file with your changes but rename it to “JUN26_hw.py” after uploading
  2. Homework: Add on to sword_attack() method
    1. Choose a random number between 0 and the self.monster_object’s max_attack attribute
    2. Remove that amount from player.health attribute
    3. We’re now able to play the game, we can hit the monster and take damage

Details

Date:
June 26
Time:
6:30 pm - 7:30 pm
Event Categories:
,