Question: The matlab function: x = randi([1 6],1) Produces a random integer from 1 to 6, similar to a die in a board game. Using this
The matlab function:
x = randi([1 6],1)
Produces a random integer from 1 to 6, similar to a die in a board game. Using this information, design the first move of board game, where you throw two dice. If the dice are the same number, your code should output "Lose a turn"
If the sum of the dice is less that 7, your code should output "-5 points".
If the sum of the dice is greater than 7, your code should output "+5 points".
To complete this quest, answer the following questions in the submission box below.
- Upload your word document submission that includes your code, and the proper outputs of your code to prove its functionality. Keep in mind that the screenshot of your output must also include a timestamp showing when you completed the quest.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
