Round the Clock Dice Game (Using MATLAB)Round the Clock is a very simple game played with two dice.
Round the Clock Dice Game (Using MATLAB)Round the Clock is a very simple game played with two dice. The players take turns rolling the dice and try to get all of the numbers on a clock face (1 through 12). Players first try to roll a one. Once a player has rolled a one, (s)he moves on to trying to roll a two on the next turn. Play continues until someone has rolled all of the numbers. Numbers can be rolled on a single die or by adding the values of the two dice. For simplicity, we will only have one player and simulate how long it will take to finish the game.Do a script that does the following:1. Includes this command: rng(‘shuffle’). This command randomly seeds the random function you will be using.2. Displays to the user the current value (s)he is attempting to roll.3. Rolls the dice: Dice1 = randi([1 6],1); Dice2 = randi([1 6],1); Note: randi([1 6],1) creates one integer value in the range of 1 to 6.4. Outputs to the user the values of the two dice.5. Checks and displays if the user has completed the current phase or needs to make another attempt.6. Pause for 1 second: pause(1);7. Repeat steps 2 through 6 until the player has rolled all 12 values.8. Display how many turns it took to finish.9. Run your script several times to test it.
We've got everything to become your favourite writing service
Money back guarantee
Your money is safe. Even if we fail to satisfy your expectations, you can always request a refund and get your money back.
Confidentiality
We don’t share your private information with anyone. What happens on our website stays on our website.
Our service is legit
We provide you with a sample paper on the topic you need, and this kind of academic assistance is perfectly legitimate.
Get a plagiarism-free paper
We check every paper with our plagiarism-detection software, so you get a unique paper written for your particular purposes.
We can help with urgent tasks
Need a paper tomorrow? We can write it even while you’re sleeping. Place an order now and get your paper in 8 hours.
Pay a fair price
Our prices depend on urgency. If you want a cheap essay, place your order in advance. Our prices start from $11 per page.