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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started