Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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:

Farkle: Farkle is a game that uses six dice. The goal is to strategically decide how to score your own dice according to the point combinations laid out in the rules to be the first player to reach 10,000 points. Review the complete rules for this game.

IT 312 Farkle Rules

Develop a program that follows the rules of Farkle as described. On program start-up, it shall display the rules to the user as read from a text file submitted with the program. The user can then set up the game by entering the number of players. Any number below two shall ask the user to add more players. Once gameplay has started based on the game rules, there are a few main pieces to address. Rolling the die should be performed by randomly generating the side of the die displayed for each of the six using a random number generator. After each players roll, calculate the score for the roll based on the users selection for scoring. Validate that the scoring option applies to the dice and determine if a subsequent role is allowed. Continue playing until a player reaches 10,000 points. Display a message to the game winner. 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.

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.

Refer to the How to Write Pseudocode document for guidance. Guidelines for Submission: This assignment should be submitted as a Microsoft Word document with 12-point Times New Roman font and one-inch margins

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions