- This event has passed.
10 AM – Python OOP – Indo – Gamas
December 9, 2023 @ 10:00 am - 11:00 am
Today We Did
- We finished Library System project.
- We reviewed the homeworks.
- We added list all old books
- We started Monster Inheritance project
Homework
- Continue on Monster Inheritance project like below. Just do
- Add Monster
- List all monsters.
- When the program first starts, the system need to have immediately 4 monsters: Dragon, Troll, Water Golem and Cyclops. Look at each of these monsters data in the example below. Remember, these monsters is automatically there when you start your program.
-
Please select one of the following 1. Add Monster 2. List all monsters 3. Play Adventure Enter your selection (Enter 'exit' to quit): asdf Invalid selection, please try again Please select one of the following 1. Add Monster 2. List all monsters 3. Play Adventure Enter your selection (Enter 'exit' to quit): 2 - Dragon - 100 health - 50 Max attack - Troll - 50 health - 20 Max attack - Water Golem - 30 health - 20 Max attack - Cyclops - 60 health - 30 Max attack Please select one of the following 1. Add Monster 2. List all monsters 3. Play Adventure Enter your selection (Enter 'exit' to quit): 1 ADD MONSTER Enter monster species: Unicorn Enter monster health: 80 Enter monster max_attack: 70 You have added Unicorn into our system. Please select one of the following 1. Add Monster 2. List all monsters 3. Play Adventure Enter your selection (Enter 'exit' to quit): 2 - Dragon - 100 health - 50 Max attack - Troll - 50 health - 20 Max attack - Water Golem - 30 health - 20 Max attack - Cyclops - 60 health - 30 Max attack - Unicorn - 80 health - 70 Max attack Please select one of the following 1. Add Monster 2. List all monsters 3. Play Adventure Enter your selection (Enter 'exit' to quit):