Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions