Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MATLAB. I need a code to make a 2D or 3D animation of (dice rolling) for the following game using MATLAB:- please help the program

MATLAB. I need a code to make a 2D or 3D animation of (dice rolling) for the following game using MATLAB:- please help the program should roll the dice upon request

Two players play against each other, starting with score 0 each. Winner is the player to first reach a score of 100 or more. The players play in turn. The score added in each round is determined as follows: The player throws a die. If the die does not show a 1, he has the option to stop and have the points added to his score, or to continue throwing until either he stops or gets an 1. As soon as he gets a 1, his turn ends and no points are added to his score, any points he has accumulated in this round are lost. Afterward it is the second player's turn.

A player should be able to make strategic decisions to win the game. The program should roll the dice upon request, make apply the rules and score the game.

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

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions

Question

LO10.3 Explain how demand is seen by a purely competitive seller.

Answered: 1 week ago