- This event has passed.
5:30 PM – Python OOP – Gamas
September 28 @ 5:30 pm - 6:30 pm
Today We Did
- We continued with Monster Inheritance project
- We finished sword attack codes and create self.sword_attack(self, chosen_monster) method.
Homework
- Add a new monster in initialize_monster()
- Minotaur – 80 health – 25 mininum damage – 80 maximum damage
- Cylops – 75 health – 15 minimum damage – 90 maximum damage
- Add codes so all magic attack works. This is similar to sword_attack.
-
MAIN MENU: 1. View All Monsters 2. Add New Monster 3. Start Adventure Make your selection (enter 'exit' to quit): 3 PLAY ADVENTURE Enter player's name: Gamas Enter player's health: 100 Hi Gamas, welcome to AYC Game Gamas you have 100 health remaining. Please choose the monster you wish to fight - Dragon - 100 health - 20 minimum damage - 100 maximum damage - Stone golem - 50 health - 20 minimum damage - 50 maximum damage - Minotaur - 80 health - 25 minimum damage - 80 maximum damage - Cylops - 75 health - 15 minimum damage - 90 maximum damage Enter your selection (enter 'stop' to quit): dragon 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 - Min and Max damage: 10 to 20 2. Water magic - Min and Max damage: 7 to 15 3. Earth magic - Min and Max damage: 12 to 25 4. Wind magic - Min and Max damage: 8 to 15 Enter your selection: 1 You attack Dragon with 17 damage and the monster have 83 health remaining! Dragon attack you with 60 damage. You have 40 health remaining! Gamas you have 40 health remaining. Please choose the monster you wish to fight - Dragon - 83 health - 20 minimum damage - 100 maximum damage - Stone golem - 50 health - 20 minimum damage - 50 maximum damage - Minotaur - 80 health - 25 minimum damage - 80 maximum damage - Cylops - 75 health - 15 minimum damage - 90 maximum damage Enter your selection (enter 'stop' to quit): cylops What do you want to do with the Cylops 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 - Min and Max damage: 10 to 20 2. Water magic - Min and Max damage: 7 to 15 3. Earth magic - Min and Max damage: 12 to 25 4. Wind magic - Min and Max damage: 8 to 15 Enter your selection: 2 You attack Cylops with 11 damage and the monster have 64 health remaining! Cylops attack you with 61 damage. You have -21 health remaining! Gamas you have -21 health remaining. Please choose the monster you wish to fight - Dragon - 83 health - 20 minimum damage - 100 maximum damage - Stone golem - 50 health - 20 minimum damage - 50 maximum damage - Minotaur - 80 health - 25 minimum damage - 80 maximum damage - Cylops - 64 health - 15 minimum damage - 90 maximum damage Enter your selection (enter 'stop' to quit):
-