Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

cpp program of MULTIPLE of 3 number dice game. The application randomly throws 3 dice for the first player and another 3 dice for the

cpp program of MULTIPLE of 3 number dice game. The application randomly "throws" 3 dice for the first player and another 3 dice for the second player. After each random throw, store the results in an array. The application displays all the values, which can be from 3, 6, 9, 12, 15 or 18 inclusive for each die.

Sample Output:

MENU

[1] How to play the game?

[2] Start the Game

[3] Exit

Enter you choice: 1

Welcome to MULTIPLE of 3 NUMBER DICE GAME!

Place your instruction here ...

Press any key to go back to main menu or [N/n] to exit. Y

MENU

[1] How to play the game?

[2] Start the Game

[3] Exit

Enter your choice: 2

Random Dice Number Generated:

First Player: 12 12 12 (3 of a kind, beats 2 of a kind)

Second Player: 12 15 14

Player 1 Wins!

Score Player 1 = 1 and Score Player 2 = 0

Press any key to continue playing or [N/n] to go back to main menu. C

Random Dice Number Generated:

First Player: 6 18 6 (both have 2 of a kind higher value wins.)

Second Player: 12 9 12

Player 2 Wins!

Score Player 1 = 1 and Score Player 2 = 1

Press any key to continue playing or [N/n] to go back to main menu. B

Random Dice Number Generated:

First Player: 12 15 12 (both have same kind and value)

Second Player: 3 12 12

It's a Tie!

Score Player 1 = 1 and Score Player 2 = 1

Press any key to continue playing or [N/n] to go back to main menu. g

Random Dice Number Generated:

First Player: 3 6 9 (no same kind)

Second Player: 12 15 18

It's a Tie!

Score Player 1 = 1 and Score Player 2 = 1

Press any key to continue playing or [N/n] to go back to main menu. N

MENU

[1] How to play the game?

[2] Start the Game

[3] Exit

Enter your choice:

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_2

Step: 3

blur-text-image_3

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

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

the role of board subcommittes in steinhoff governance crisis

Answered: 1 week ago

Question

3. What do you think? Are these sales letters convincing?

Answered: 1 week ago