This is a C++ program, to be done in a .cpp file Problem Statement: Write rules for the user on how to play the game in a text file. Then, create a program that will read in the text file and display it out to the user. LCR Game Rules: The Dice ● There are three dice rolled each turn. Each die has the letters L, C, and R on it along with dots on the remaining three sides. These dice determine where the player’s chips will go. ○ For each L, the player must pass one chip to the player sitting to the left. ○ For each R, the player must pass one chip to the player sitting to the right. ○ For each C, the player must place one chip into the center pot and those chips are now out of play. ○ Dots are neutral and require no action to be taken for that die. The Chips ● Each player will start with three chips. ● If a player only has one chip, he/she rolls only one die. If a player has two chips left, he/she rolls two dice. Once a player is out of chips, he/she is still in the game (as he/she may get chips passed to him/her), but passes the dice to the next player. Winning the Game ● The winner is the last player with chips
This is a C++
Problem Statement: Write rules for the user on how to play the game in a text file. Then, create a program that will read in the text file and display it out to the user.
LCR Game Rules:
The Dice
● There are three dice rolled each turn. Each die has the letters L, C, and R on it along with dots on
the remaining three sides. These dice determine where the player’s chips will go.
○ For each L, the player must pass one chip to the player sitting to the left.
○ For each R, the player must pass one chip to the player sitting to the right.
○ For each C, the player must place one chip into the center pot and those chips are now
out of play.
○ Dots are neutral and require no action to be taken for that die.
The Chips
● Each player will start with three chips.
● If a player only has one chip, he/she rolls only one die. If a player has two chips left, he/she rolls
two dice. Once a player is out of chips, he/she is still in the game (as he/she may get chips
passed to him/her), but passes the dice to the next player.
Winning the Game
● The winner is the last player with chips
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images