Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

using java create a wizard battle game. Create 2 wizards to battle each other. Create 2 wizard spells Fireball and Heal. First ask user input

using java create a wizard battle game.
Create 2 wizards to battle each other.
Create 2 wizard spells Fireball and Heal.
First ask user input on wizard name, wizard guild,
Set wizard health points to 30, wizard magic points to 30, wizard intelligence points 20.
Write a java code to make the wizards fight each other.
Before each attack turn the wizard attacking(wizard1) will roll 2 dice, first dice gives the magic cost for the spell and its value will be deducted from total magic from wizard1, and the second dice will give the damage caused to wizard2 and its value will be deducted from the health total from wizard2.
The value will continue taking turns until one of the wizards reaches zero health.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago