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
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 5 steps with 3 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)