« All Events
9 AM – Intro To Java – Gamas
June 18, 2022 @ 9:00 am - 10:00 am
Homework
- Continue on MonsterInheritance project
- Add code to do the following
-
Please select from one of the following
1. Add new monster
2. List all monsters
3. Play the game
Enter your selection (enter "exit" to quit):1
ADD NEW Monster
Enter monster species: Griffin
Enter monster health: 70
Enter monster max attack: 40
Please select from one of the following
1. Add new monster
2. List all monsters
3. Play the game
Enter your selection (enter "exit" to quit):2
- troll - 50 health
- dragon - 100 health
- Water Golem - 30 health
- Griffin - 70 health
Please select from one of the following
1. Add new monster
2. List all monsters
3. Play the game
Enter your selection (enter "exit" to quit):3
What is your name: Gamas
How much health you want: 100
Gamas has 100 health remaining.
Please select one of the following monsters:
- troll - 50 health
- dragon - 100 health
- Water Golem - 30 health
Enter your selection (Enter 'stop' to end the game):