Question
Trying to build a pig dice game that will first ask the user to pick between game A or game B. Then will proceed to
Trying to build a pig dice game that will first ask the user to pick between game A or game B. Then will proceed to have players 1 & 2 roll, while keeping track of the score. For game A (one dice game), if player 1 or 2 rolls a 1, their score goes back to 0. For game B (two dice game), if player 1 or 2 rolls snake eyes (two 1's), their score goes back to 0. C++ only!! Here are the instructions: Create a simulation for a dice game of PIG. Here are the rules: There are two local players Player 1 will go first Single Die Rules The player will roll the die repeatedly, accumulating points shown on the dies value. The player will continue to roll until satisfied with their score. If the player rolls a 1, they will lose all points earned during that round and their turn ends. The process will repeat until a player is the first to reach 100 points or greater. Two Dice Rules The player will roll the dice repeatedly, accumulating points shown on the dies value. The player will continue to roll until satisfied with their score. If the player rolls a 1 on either die, they will lose all points earned during that round and their turn ends. If the player rolls snake eyes (double 1s) they will lose all points earned and start back at 0. The process will repeat until a player is the first to reach 100 points or greater. Our game should contain the following: 2 Player mode - Human controlled player 1 and 2 Game mode A & B - A is single die, B is two dice Use validation if necessary, use programming concepts and good habits formed over lecture material. This is your design. The choices are yours to make. You will be evaluated on your level of craftsmanship of the architecture. You will present and defend your design decisions in a class presentation as a team to the class. System Design: Your design should look to include course concepts. Some examples: Inheritance Opportunities: Core rules - Single player rules - 2 player rules Exceptions - Check for errors with input Multiple classes Dynamic memory allocation - Choose which mode and create the proper amount of dice and players necessary And any other previously discussed course content
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