American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

2 PM – Python Object Oriented Programming – Sebastian

September 9, 2023 @ 2:00 pm - 3:00 pm

Today We Did
  1. Continued Monster System
  2. Reviewed overall game structure and how the logic has to work
  3. Began adding inheritance
  4. In case you need anything, feel free to email me at sebastian@ayclogic.com
Homework
  1. Please submit your homework to the corresponding project’s folder in your Google Drive
  2. Homework: Try adding a new Monster subclass (AKA child class) called “Troll” by closely following how we created Dragon.
    1. Create a new file for our subclass called “troll.py”
    2. Make our Troll class & inherit from Monster
    3. If users attempt to damage trolls with the earth magic attack, print the following:

      print(“Troll is immune to earth attack. Therefore, the troll suffer no damage”)

    4. For any other magic attack, make the troll take damage as usual.

Details

Date:
September 9, 2023
Time:
2:00 pm - 3:00 pm
Event Categories:
,
Verified by MonsterInsights