« All Events
6 PM – Python OOP – Gamas
March 15, 2023 @ 6:00 pm - 7:00 pm
Homework
- Continue on MonsterInheritance project
- Create a method initialize_monsters. In here, you want to automatically add 3 monsters in the beginning and call this when you start the program.
- Dragon – 100 health – 100 max damage
- Troll – 75 health – 50 max damage
- Water Golem – 50 health – 50 max damage
- After user enter “3” for Start Adventure, continuously display the adventure menu until user enter “exit”.
-
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 player's name: Gamas
Enter player's health: 100
Gamas welcome to AYC Logic Adventure game.
You have 100 health remaining
Please choose which monster to fight:
Dragon health - 100 max damage - 100
Troll health - 75 max damage - 50
Enter your selection (enter 'exit' to quit):
Gamas have 200 health remaining.
Please choose your monster:
Troll - 50 healths - 30 Max attack points.
Water Golem - 30 healths - 20 Max attack points.
Dragon - 100 healths - 50 Max attack points.
Enter your selection (enter "exit" to quit): adfs
You have entered an invalid selection. Please try again
Gamas have 200 health remaining.
Please choose your monster:
Troll - 50 healths - 30 Max attack points.
Water Golem - 30 healths - 20 Max attack points.
Dragon - 100 healths - 50 Max attack points.
Enter your selection (enter "exit" to quit): asdf
You have entered an invalid selection. Please try again
Gamas have 200 health remaining.
Please choose your monster:
Troll - 50 healths - 30 Max attack points.
Water Golem - 30 healths - 20 Max attack points.
Dragon - 100 healths - 50 Max attack points.
Enter your selection (enter "exit" to quit): ads
You have entered an invalid selection. Please try again
Gamas have 200 health remaining.
Please choose your monster:
Troll - 50 healths - 30 Max attack points.
Water Golem - 30 healths - 20 Max attack points.
Dragon - 100 healths - 50 Max attack points.
Enter your selection (enter "exit" to quit): exit
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: