queen's position on a chess board...!!!
Posted on 1998-10-03
I need help writing a program in C language that will display where a queen can move on a chess board. The user will decide where the queen will start.
Q = queen's position
M = row of queen
N = column of queen
U = character to show where queen can move = '*'
V = character to show where queen cannot move = '-'
The print out would be in 8 rows and 8 columns showing the symbols for the position of the queen, places she can move, and places she cannot move...
Any suggestions or snippets of code would be greatly appreciated..!! Thanks..!!