Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ Farkle Game /* Develop a program that follows the rules of Farkle as described. 1. On program start-up, it shall display the rules to

C++ Farkle Game

/* Develop a program that follows the rules of Farkle as described. 1. On program start-up, it shall display the rules to the user as read from a text file submitted with the program. 2. The user can then set up the game by entering the number of players. 3. 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. 4. 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. 5. After each players roll, calculate the score for the roll based on the users selection for scoring. 6. Validate that the scoring option applies to the dice and determine if a subsequent role is allowed. 7. Continue playing until a player reaches 10,000 points. Display a message to the game winner. */

/*Things to include: A. Input/Output: Your program reads input from a file and uses system input and output through the console. B. Control Structures: Your program utilizes appropriate control structures for game logic. C. Libraries: Your program uses standard libraries to pull in pre-defined functionality. D. Arrays and String Manipulation: Your program effectively uses arrays and string manipulation. E. Classes Breakdown: Your program is broken down into at least two appropriate classes. F. Methods: Your program uses all included methods correctly within the classes. */

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

=+4 How did it affect HR?

Answered: 1 week ago