Question
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 with a GUI
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
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