American Young Coder (AYC)

AYC logo
Loading Events

« All Events

  • This event has passed.

7 PM – Python OOP – Darin

January 21 @ 7:00 pm - 8:00 pm

What We Did Today:

  1. Continue the MonsterInheritance project, implementing attacks against the monster and on the player
  2. Implemented object oriented design for method placement

Homework:

Continue in your Monster Inheritance project in main.py and monster.py, and do the following:

  1. get input from the shell after printing the magic menu
  2. check the input with many if statements, and just use ‘pass‘ in each if statement
  3. 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!

Details

Date:
January 21
Time:
7:00 pm - 8:00 pm
Event Categories:
,
Verified by MonsterInsights