American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7PM – OOP Python – Latisha

March 8, 2023 @ 7:00 pm - 8:00 pm

Today We Did
  1. Continued working on Monster Inheritance
Homework
  1. Make a new class called Troll in a file called troll.py and a new class called WaterGolem in a file called water_golem.py. They should both inherit from the Monster class. (HINT: should be similar to how we did the Dragon class)
  2. Troll is immune to earth magic, and WaterGolem is immune to water magic.
  3. Use these new classes in main.py’s load_monster method to replace the old troll and water golem.

If you have any questions, you can ask me at latisha@ayclogic.com.

Details

Date:
March 8, 2023
Time:
7:00 pm - 8:00 pm
Verified by MonsterInsights