American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6:00 PM – Python OOP – Joshua

May 21 @ 6:00 pm - 7:00 pm

Today We did

– More monster inheritance work
Homework 

Add the magic hit to the monster.py file
– it should act exactly like physical hit, but in the string, it should say the type of magic
Write up sword attack to the monster_system

#implement a function called sword_attack(monster)
# it come up with a random number between 10-20
# use the monsters physical_hit function to reduce the monsters hp by the random number
# hint( import random) on the top of this file

Details

Date:
May 21
Time:
6:00 pm - 7:00 pm