Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c++ language The Game Board The game board will be represented as a 2-dimensional array. It is 7 x 7 cells in size. The elements

image text in transcribed
c++ language
The Game Board The game board will be represented as a 2-dimensional array. It is 7 x 7 cells in size. The elements of the array will store the amount of money in the different grid cells. The grid rows will be named using the uppercase) letters 'A' to 'G', and the grid columns will be named using the digitso to '6'. Thus, cach cell will have a unique name such as A2 (row 0, column 2) or E6 (row 4. column 6). The cells on the board will start with more or less money depending on how close they are to the center. Specifically, the cells on the edge will each have S1, the next row of cells inside them will each have S2, then $3, and the center cell will have 4. At game start, the board will look as follows: $1 $1 $1 $1 $1 $2 $1 $1 $2 $1 $1 $1 $1 $1 $1 $2 $2 $2 $2 $1 $1 $2 $3 $3 $ $2 $2 $1 $2 $3 $4 $3 $2 $1 $2 $3 $3 $3 $2 $1 $2 $2 $1 $2 $1 $2 $1 $1 $1 In Part E the display of the game board will be revised to look as follows. 5 0 1 2 3 4 6 1 1 $1 $1 $1 $1 $1 $1 $2 1 2 3 1 2 $3 $2 $1 $2 $3 1 IB 1 1 C1 $1 $2 $2 $1 D1 $1 $2 $3 $4 $3 $2 $1 1 ID 1 $3 $3 $1 E1 1 FI $1 $1 2 $2 $3 $2 $2 $2 $2 $2 $1 1 IF 1 IG G $1 $1 $1 $1 $1 $2 $1 1 0 1 2 3 4 5 The Dice The simulated dice have four sides with the values 0, 1, 2, and 3. When choosing a grid cell in the game, two dice are rolled and their values are added to give the row number. For example, if 1 and 3 were rolled, the row would be 1 + 3 - 4. Another two dice are rolled and added to choose the column. As a result, the cells near the center will be chosen more frequently The program will use symbols to print the dice values so that they look like they are on dice. For example: ROW Column +---+ +---+ 111101 +---+ +---+ Here, row 2 + 3 = 5 and column 1 + 0 = 1 were rolled, so the cell chosen is el. +---+ ---+ 121131

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

Linked Data A Geographic Perspective

Authors: Glen Hart, Catherine Dolbear

1st Edition

1000218910, 9781000218916

More Books

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago