Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Should look like this. Write a MATLAB program to simulate the Tenzi game automatically that can: Use ten (10) 6-sided dice to automatically play the

image text in transcribed

Should look like this.

image text in transcribed

Write a MATLAB program to simulate the Tenzi game automatically that can: Use ten (10) 6-sided dice to automatically play the Tenzi game for one player. 2. 1. Generate ten (10) random integers between 1 and 6 to represent the face value of rolling ten dice. 3. Print the ten (10) dice values on screen 4. Ask the player to look at the first roll and input the number to roll all 10 dice to be. 5. Set aside the dice rolled with the number by counting and printing "the number of dice on the side" in the command window. 6. Print the face values of the dice that are set aside on screen 7. Roll the remaining dice by generating as many random integers between 1 and 6 as the dice that are not set aside. Print the remaining dice rolled values on screen. Set aside the dice with the desired value (like in step 5) and print "the total number of dice on the side" in the command window. 8. 9. 10. Print the face values of the dice that are set aside on screen 11. Keep rolling the remaining dice until all 10 dice show the same number 12. Print "TENZI" on screen

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Databases Concepts And Practice

Authors: Suzanne W Dietrich

1st Edition

1119827949, 9781119827948

More Books

Students also viewed these Databases questions

Question

What is DDL?

Answered: 1 week ago