Loading Events

« All Events

  • This event has passed.

12:30 PM – Python OOP – Gamas

October 3 @ 12:30 pm - 1:30 pm
Today We Did
  1. We continued with Monster Inheritance project
  2. We added monster.magic_attack_from_player(self, attack, magic_type)
Homework
  1. Add code in monster_system.py so when user enter “Exit” during play adventure, it will go back to main menu.
  2. Create a new file call dragon.py
    1. Create a class called Dragon
    2. This class needs to inherits from Monster class. Look at how you did inheritance when you did the IceCreamStand class or ElectricCar class.
  3. Inside monster_system.py
    1. import Dragon class
    2. And use Dragon class in initialize_monster() method.

Details

  • Date: October 3
  • Time:
    12:30 pm - 1:30 pm