Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

One of the most popular games of chance is a dice game known as craps. The rules of the game are straightforward: -A player rolls

One of the most popular games of chance is a dice game known as "craps". The rules of the game are straightforward: -A player rolls 2 dice. Each die has 6 faces: 1, 2, 3, 4, 5, and 6. After throwing the 2 dice, if the sum of the dice points is 7 or 11 on the first roll of the dice, the player wins. -If the sum is 2, 3, or 12 on the first roll (called "craps"), the player loses (i.e. the house wins). -If the sum is 4, 5, 6, 8, 9, or 10 on the first roll, then that sum becomes the player's "point". -To win, you must continue rolling the dice until you "make your point". -The player loses by rolling a 7 before making the point. Simulate this game as a console application. Make sure you use seed for the random call and use C++11 methods as described in class. -We want to make the game multi-player. In this case players take turn to throw dice, and keep track of how many times they win. The first person to reaches 3 times winning, wins the game. -Make class for player to keep track of that person player status and statistics. -At the beginning of the game ask the user how many players are playing the game, and asks for their names. -Then each round computer asks the person whose turn is to throw dice, to throw the dice. -If you need to make any extra assumptions, just make sure to mention them in your implementation

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

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions

Question

Q: What steps are taken to reduce turnover?

Answered: 1 week ago

Question

What was the role of the team leader? How was he or she selected?

Answered: 1 week ago

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago