Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Shut the box the entire code must be written in the main method write a java file for this game do not use LISTs use
Shut the box
the entire code must be written in the main method
write a java file for this game do not use LISTs use ARRAYS and the String method
PLEASE follow started code and formating for output
the starter code is :
import java.util.Scanner;
import java.util.Random;
public class ShutTheBox
public static void mainString args
Put Your Code Here.
Use this boolean staticmethod classmethod to determine if some or all
of the available tiles tiles could possibly be arranged to sum to the
dice roll roll The method outputs a boolean value true or false
ShutTheBoxHelperClass.continuePlayingboolean tiles, int roll;
the out put should be formated as such:
Begin playing game #
Enter a seed:
The available numbers are:
The dice roll is and for a sum of
Which tiles should be "closed"? Separate multiple tiles with a space.
The available numbers are:
The dice roll is and for a sum of
Which tiles should be "closed"? Separate multiple tiles with a space.
The available numbers are:
The dice roll is and for a sum of
Which tiles should be "closed"? Separate multiple tiles with a space.
The available numbers are:
The player may opt to roll die or dice because tiles and are "closed".
Enter to roll only die or or any other key to roll dice.
The dice roll is and for a sum of
Which tiles should be "closed"? Separate multiple tiles with a space.
The available numbers are:
The player may opt to roll die or dice because tiles and are "closed".
Enter to roll only die or or any other key to roll dice.
The die roll is
Which tiles should be "closed"? Separate multiple tiles with a space.
The available numbers are:
The player may opt to roll die or dice because tiles and are "closed".
Enter to roll only die or or any other key to roll dice.
The dice roll is and for a sum of
Which tiles should be "closed"? Separate multiple tiles with a space.
The available numbers are:
The player may opt to roll die or dice because tiles and are "closed".
Enter to roll only die or or any other key to roll dice.
The die roll is
Which tiles should be "closed"? Separate multiple tiles with a space.
Congratulations, you won!
Do you wish to play again? Enter Yes to play again or anything else to quit.
No
Thank you for playing "Close the Box"! The total score is with wins after rounds
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started