Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions Develop the C++ code to solve the problem statement below. Follow these style guidelines as you develop the code. Use commenting to describe your

Instructions

Develop the C++ code to solve the problem statement below. Follow these style guidelines as you develop the code. Use commenting to describe your code, and practice debugging if you run into errors. Submit your final source code. Problem Statement: Open the rule document for the game you selected for your final project:

  • LCR Rules
  • Farkle Rules
  • Liar's Dice Rules

Use the document to write rules for the user on how to play the game in a text file. Then, using the information from the resource articles, create a program that will read in the text file and display it out to the user.

Welcome to Farkle

Please read the following rules before beginning play.

The rules of Farkle: Farkle is a dice game that is multi-player with a minimum of two players , but no upper limit on the number of participants. The goal is to reach 10,000 points first.

Points are acquired one of three different ways. 1) A roll of a 1 is worth 100 points. 2) A roll of a 5 is worth 50 points. 3) Three (3) dice rolled at the same time with the same value is worth 1 00 times the face value, for example: three 2's rolled is 200 points and three 5 's rolled is 500 points. One exception to this rule is that three 1's rolled is 1,000 points rather than 100 points.

The Play: 1) The first player rolls all six dice at the same time and sets aside a ny "point dice" (1's, 5's, or three of a kind) that appear. At this point, the p layer has the option to continue toroll the remaining dice to collect even more points, or stop and keep any points acquired.

2) A Farkle occurs when the dice are rolled and no point dice appear. At this point the player loses all the point dice he/she/it has collected during t hat turn, and the play passes to the player to the left. No points are recorded for that player's turn.

3) If a player decides not to risk rolling a Farkle then he/she/it can s top rolling and the play passes to the player to the left. Any points collected during that turn are then recorded.

4) If, in the course of one turn, all six dice become point dice and are set aside, the player must roll all six dice at least one more time, before sto pping and keeping the points collected. Entering the Game

5) In order for a player to initially enter the game, (and record points ), he/she must continue to roll until at least 1,000 points are collected during one turn. Once the player officially enters the game, the points are recorded a nd that player may stop rolling at any time during future turns. Sometimes it mi ght take many turns before a player can get started.

Secret Strategy: All point dice do not have to be set aside. If you roll a 1 and a 5, som etimes it may be strategic to keep the 1 and roll the 5 again with the rest of t he non-point dice. This may give you a better chance of rolling a three of a kin d. But, at least one point die must be set aside after each roll. Winning In ord er to win, a player must get 10,000 points recorded. After a player gets over 10 ,000, each of the other players get one turn to try to beat the first player who goes out. If none of them beat his or her score, then he or she is declared the winner. If someone beats his or her score then that new player wins the game.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions

Question

2 7 6 . .

Answered: 1 week ago

Question

Are gated communities any safer than non-gated communities? Why

Answered: 1 week ago

Question

describe the main employment rights as stated in the law

Answered: 1 week ago