...

/

Solution: Final Project—You Pick, You Build

Solution: Final Project—You Pick, You Build

Review the solution to the interactive Java app that you’ve built.

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 dice to fight. Each round:

  • The higher roll deals 1 HP damage to the ...