American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – Python OOP – Daniel (Joel Sub)

April 26 @ 6:00 pm - 7:00 pm

Today we did:
  1. We continued working on MonsterInheritance and added the sword attack.
Homework:
  1. Inside the Monster class, make a receive_magic_attack method. It will have damage and magic_type as the parameters. Similar to sowrd attack, decrease the health of the monster by the amount of damage. Also print “You attacked <species> with <damage> and the <species> has <health> health remaining. “

Details

Date:
April 26
Time:
6:00 pm - 7:00 pm