« All Events
10 AM – Intro To Java – Gamas
December 4, 2021 @ 10:00 am - 11:00 am
Today We Do
- We continued with Monster Inheritance project.
- We added the ability to
Homework
- Continue with Monster Inheritance project. When user select “1. magic attack”, display magic attack menu like below
Please select one of the following monsters:
- troll - 50 Health remaining
- water golem - 30 Health remaining
- dragon - 100 Health remaining
- Exit
Enter your selection: troll
What do you want to do with the troll:
1. Magic attack
2. Melle attack
3. Arrow attack
4. Heal
Enter your selection: 1
What kind of magic attack you want to do:
1. Fire magic - 10 damage
2. Water magic - 10 damage
3. Earth magic - 12 damage
4. Wind magic - 8 damage
Enter your selection: 1
You attacked the troll and it has 40 healths remaining.
Please select one of the following monsters:
- troll - 40 Health remaining
- water golem - 30 Health remaining
- dragon - 100 Health remaining
- Exit
Enter your selection: