Solution: Build a Dice Battle Game
Review the solution to the interactive Java app that you’ve built.
We'll cover the following...
We'll cover the following...
You’ve built the dice battle game—now let’s see how a complete version might look!
Below is a sample solution that combines everything you’ve learned: variables, input, loops, conditionals, randomness, and objects.
Build a dice battle game
You were asked to build a battle game where the player and an enemy roll the dice to fight.
In each round:
The higher roll deals 1 HP damage to the other. ...