Question: 2. Declare an array cBoard (of type char) to hold the contents of a chessboard (8x8). The first subscript will be the column (a-h) and

2. Declare an array cBoard (of type char) to hold the contents of a chessboard (8x8).

The first subscript will be the column (a-h) and the second subscript will be the column (1-8).

(You can use 1-8 or 0-7 as you prefer, but set up your array accordingly.)

(This is a one-liner.)

struct Square board[8][8]; (yes this is the answer to number 2)

3.) Using the array above, Place the white king ('K') on its home square (E1), and the black king ('k') on its square (E8). (Remember, you will need to use numerical subscripts for your arrays -- C doesn't understand "E1".)

(This requires two lines of code.)

need help with number 3, in c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!