Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Need help with MATLAB code. Here is an example on how it should look like Write a MATLAB program to simulate the Shut the Box
Need help with MATLAB code.
Here is an example on how it should look like
Write a MATLAB program to simulate the Shut the Box Party Game that can: 1. Play Shut the Box for single or multiple players automatically and intelligently. 2. Ask the game host to input how many players will choose the numbers to cross out for themselves. Ask the game host to input how many players will let the computer select numbers to cross out for them automatically. Use two (2) 6-sided dice to play Shut the Box game for each player sequentially. 3. 4. 5. For each player: a. Print the player ID number clearly in the command window (i.e. Player 1, Player 2, etc.... b. Print a number strip from 1 through 12 in the command window c. Generate two (2) random integers between 1 and 6 to represent the face value of rolling two dice. d. Print the two (2) dice values on screen after each roll e. Sum the dice value and print the sum on screenStep 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