« All Events
5 PM – Python OOP
October 15, 2021 @ 5:00 pm - 6:00 pm
Today We Do
- The students were having a lot of errors inside MonsterSystem project. We spent the entire class fixing this error.
Homework
- Inside monster.py, create a new method (method is a function inside a class), “received_magic_attack”, it has 2 parameters: attack_point, magic_attack
- Inside the “received_magic_attack” method, add code that would reduce monster.health. This one is very similar to “received_sword_attack” method.
- run your project and if you have any errors, email to gamas@ayclogic.com and nathaniel@ayclogic.com. In the email, attach (not copy and paste) all 4 files: dragon.py, monster.py, monster_system.py, water_golem.py. So we can replicate your problem.