Question
Overview: In this assignment, you will create pseudocode that reflects the main elements of the logic for your final project. This section should not be
Overview: In this assignment, you will create pseudocode that reflects the main elements of the logic for your final project. This section should not be produced using actual code; however, you should include important variables, calculations, relationships, and/or any critical components of the problem. Your goal is to include all of the elements necessary to convert into functioning code.
Prompt: Address the following in your submission:
A. Analyze the given problem statement.
B. Break the problem down into distinct steps of pseudocode that will solve the problem.
C. Create variables to track the various elements in the pseudocode.
D. If applicable, determine any breakdown of pseudocode into functions and/or classes.
E. Use natural language to work through the problems.
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. This article states the rules of Farkle as follows: Points Points are acquired one of three different ways.
A roll of a 1 is worth 100 points.
A roll of a 5 is worth 50 points.
Three (3) dice rolled at the same time with the same value is worth 100 times the face value, for example: three 2s rolled is 200 points and three 5s rolled is 500 points. One exception to this rule is that three 1s rolled is 1,000 points rather than 100 points.
The Play
The first player rolls all six dice at the same time and sets aside any point dice (1s, 5s, or three of a kind) that appear. At this point, the player has the option to continue to roll the remaining dice to collect even more points, or stop and keep any points acquired.
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 that turn, and the play passes to the player to the left. No points are recorded for that players turn.
If a player decides not to risk rolling a Farkle then he/she/it can stop rolling and the play passes to the player to the left. Any points collected during that turn are then recorded. 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 stopping and keeping the points collected.
Entering the Game
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 and that player may stop rolling at any time during future turns. Sometimes it might 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, sometimes it may be strategic to keep the 1 and roll the 5 again with the rest of the non-point dice. This may give you a better chance of rolling a three of a kind. But, at least one point die must be set aside after each roll. Winning In order 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 declar
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started