You should be able to adapt the card algorithm


You are to implement a simple two player dice game.
Each player takes turns rolling one die (the singular form of dice)
-
you should be able to adapt the card algorithm from class to easily implement this function.
You should prompt the player to enter an "R" to roll the die and generate suitable exciting output during the roll.
The player's turn continues until he voluntarily ends the turn or rolls a 1 or 6. If the player rolls a 1, the player loses all points in the current turn and the turn is over. If the player rolls a 6, the player loses all his total points going back to 0 and the turn is over. If the player rolls a 2,4, or 5, those points are added to the current turn point total.
If the player rolls a 3, those points are taken away from the current point total (this may result in a negative number!).
When the player ends a turn voluntarily the accumulated points total for that turn is added to that player 's point total.
The winner of the game is the first person to score 50.
This program should be implemented using as many functions as practical. For example, the obvious functions might be rolling the dice, updating and displaying the points total,end of turn updating and points printing.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: You should be able to adapt the card algorithm
Reference No:- TGS087649

Expected delivery within 24 Hours