Question: Objectives: Provide a game solution using C++ language. It is important that we can use a set of C++ features to solve problem. Develop solutions


Objectives: Provide a game solution using C++ language. It is important that we can use a set of C++ features to solve problem. Develop solutions that use class features for C++. Create".h" files and "*.cpp" files for classes. 1. Part 1 - Required Assignment: create a reference and a pointer a. Create a better dice game from the game of Lab Assignment 3. In this version each player (user or computer) has 2 dices. And you are required to use 1 reference variable and 1 pointer variable. You need to indicate where you use these in your code. b. The winning rule is as follows:if 2 dices of a player have the same value as a pair of 6 and the other player does not have a pair of value then a pair of value will win. So, 5&5 will beat 6& 4 because 5&5 is a pair. If both players have pairs, (user and computer), the higher pair will win. For example, 6&6 will beat any pair. If both players do not have pair, then higher total points will win. C. The output of the program may be like the following Welcome to the dice ware game. You have 100 in your game purse. Enter a bet amount to play (O means exit the program): 10 You have 5 & 5 computer has is 3 & 4 You won 10 dollars! Your game purse now has 110 dollars Enter a bet amount to play (O means exit the program): You have 6 & 4 computer has is 1 & 1 You lost 5 Your game purse now has 105 dollars Enter a bet amount to play (O means exit the program): You have 1 & 2 computer has is 3 & 4 You lost 10 Your game purse now has 95 dollars Enter a bet amount Enter a bet amount to play (O means exit the program): You choose to exit the program. Thank you and goodbye
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
