- This event has passed.
7 PM – Python OOP – Darin
January 21 @ 7:00 pm - 8:00 pm
What We Did Today:
- Continue the MonsterInheritance project, implementing attacks against the monster and on the player
- Implemented object oriented design for method placement
Homework:
Continue in your Monster Inheritance project in main.py and monster.py, and do the following:
- get input from the shell after printing the magic menu
- check the input with many if statements, and just use ‘pass‘ in each if statement
- put this all into a new method by extracting
example print out:
What do you want to do with the dragon
1. Magic attack
2. Sword attack – 10 to 20 damage
Enter your selection: 1
What kind of magic attack you want to do:
1. Fire magic – Max damage: 10
2. Water magic – Max damage: 10
3. Earth magic – Max damage: 15
4. Wind magic – Max damage: 8
Enter your selection: 2
Notes:
You can contact me at ddjapri@ayclogic if you have any questions!