Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in c++ to create a similar version on candy crush: To start the game, you will display an introductory message, implemented as

Write a program in c++ to create a similar version on candy crush: To start the game, you will display an introductory message, implemented as a function, which will give details about the game. You will declare a two-dimensional array in main() to represent the 9 x 9 board as an enum type to represent the various values that a position on the board may assume. You will declare a global constant for the size of the 2D array (where rows = columns). Each position on the board may be displayed as one of the following six values (corresponding to their enumerated data type) as follows: ! exclamation point " double quote # hashtag $ dollar sign % percentage & ampersand Note that these six characters can be found on the ASCII Table having continuous values between 33 and 38, inclusively. The enum for the data type of the board will be declared as a global enumerated data type. You will initialize the board using a function, passing in the two-dimensional array and size (i.e., number of rows). This function will randomly initialize each position on the board to one of the 6 character values. You must make sure to seed the random number generator.

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

Database Design Application Development And Administration

Authors: Michael V. Mannino

3rd Edition

0071107010, 978-0071107013

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago