« All Events
10 AM – Python OOP – Indo – Gamas
January 13 @ 10:00 am - 11:00 am
Today We Did
- We continued on Monster Inheritance project.
- We added sword attack feature.
Homework
- Continue with the Monster Inheritance project. Add codes for the magic attack. After selecting magic attack, damage the monster and the monster can also damage the player.
Welcome to AYC Logic adventure game
1. Add new monster
2. List all monsters
3. Start adventure
Please make your selection. Enter "quit" to exit: 3
Enter your name: Gamas
Enter player's health: 100
Hi Gamas, Welcome to AYC Logic Adventure Game
Gamas you have 100 health remaining.
Please choose your monster:
- Dragon - 100 health - 100 Max attack
- Troll - 50 health - 75 Max attack
- Water Golem - 50 health - 50 Max attack
Enter your selection (enter 'stop' to quit the game): 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 - 5 to 10 damage
2. Water magic - 5 to 10 damage
3. Earth magic - 5 to 15 damage
4. Wind magic - 5 to 8 damage
Enter your selection: 3
You attacked Dragon with 10 damage and the Dragon has 90 health remaining.
Dragon attacked you with 52 damage. Your remaining health is -42.