C++ programming essentials functions | game development

Purpose

The purpose of this assignment is to modify the existing code from Assignment 5 into a more maintainable and readable program by implementing various functions. You will be required to utilize void and value returning functions as well as value and reference parameters.

Programming Instructions:

1. Start with the provided solution to Assignment 5. This is NOT an option, you must use the solution code provided as your starting point.

2. Break up the main function code into the following separate functions:

a. DisplayIntro: Displays the title screen

b. PlayGame: This function holds most of the game logic that is held in the main function of the start point program

c. InitializeGameData: Initializes the game variables to the starting state. This is where you will set the card variables to the appropriate values for the game.

d. InitializeGameDisplay: Initializes the game board display variables to the starting state

e. DisplayInstructions: Displays the instructions for the game

f. DisplayBoard: Displays the concentration game board

g. GetValidBoardPosition : Prompts the player for a board position, validates it is a legal choice (1 – 6). The function should also not accept a position that has been used all ready. Hint: Check if it is not set to “*”, that will tell you if it has been used.

h. MatchMessage: Displays the match message to the player

i. NoMatchMessage: Displays the no match message to the player

j. DisplayCredits: Displays the game credit screen

3. You must add the additional functionality to the existing solution.

a. GameMenu: Displays 2 options, 1 to play the game and 9 to quit. Since the game now has a menu the player can now choose to play another game through the menu.

b. Provide at least 3 different game boards that the game can randomly select from at the start of each game.

4. The main function code for this lab is provided for you and is posted on Blackboard. The main function in your assignment must be very similar. As I do not wish to crimp your creative freedom you may change the name of the functions, if so desired, but their functionality must remain the same.

Resources:

1. Sample program posted on Blackboard

2. Main function text file posted on Blackboard

Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more