Question: Game Specification: Write a program that allows a single Player (the user to play a simple four dice game of chance against The Odds 1.


Game Specification: Write a program that allows a single Player (the user to play a simple four dice game of chance against "The Odds 1. There is a single player, with four six sided die 2. The sides of each die are labeled with the numbers from 1 to 6, we will call this the value of the die 3. A game is made up of rounds, a single round is played as such a) The player rolls their four dice -you may use randi b The dice are displayed, in some reasonable format c) The user is given the option to re-roll (up to two of their dice) and specify exactly which die they wish to re-roll d) The dice are displayed, in some reasonable format. e) A determination is made as to whether or not the player won the round, this determination is made via the following rules: i. A Quad is when all the dice have the same number on their top faces. If the player has any Quad then they receive 108 "win''s ii. A Triple is when exactly three of the dice have the same number on their top faces. If the player has any Triple then they receive 6 "win's iii. A Two-Pair is when exactly two dice have the number nl on their top faces, exactly two dice have the number n2 on their top faces, and n is not equal to n2. If the player has any Tivo-Pair then they receive 4 "win''s iv. A Junker is then anything that is not listed above. If the player has any Junker then hey they receive 1 "lose" The result of the round (with respect to the Player is reported 4. The player is asked if they wish to play another round. 5. Once the player indicates that they do not wish to play another round: Before exiting, the program displays a short report stating how many rounds were played, of those how many were won and how many were lost. Game Specification: Write a program that allows a single Player (the user to play a simple four dice game of chance against "The Odds 1. There is a single player, with four six sided die 2. The sides of each die are labeled with the numbers from 1 to 6, we will call this the value of the die 3. A game is made up of rounds, a single round is played as such a) The player rolls their four dice -you may use randi b The dice are displayed, in some reasonable format c) The user is given the option to re-roll (up to two of their dice) and specify exactly which die they wish to re-roll d) The dice are displayed, in some reasonable format. e) A determination is made as to whether or not the player won the round, this determination is made via the following rules: i. A Quad is when all the dice have the same number on their top faces. If the player has any Quad then they receive 108 "win''s ii. A Triple is when exactly three of the dice have the same number on their top faces. If the player has any Triple then they receive 6 "win's iii. A Two-Pair is when exactly two dice have the number nl on their top faces, exactly two dice have the number n2 on their top faces, and n is not equal to n2. If the player has any Tivo-Pair then they receive 4 "win''s iv. A Junker is then anything that is not listed above. If the player has any Junker then hey they receive 1 "lose" The result of the round (with respect to the Player is reported 4. The player is asked if they wish to play another round. 5. Once the player indicates that they do not wish to play another round: Before exiting, the program displays a short report stating how many rounds were played, of those how many were won and how many were lost
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
