A queen in chess can move any number of spaces horizontally, vertically, or diagonally. (Again, see Figure 9.15.) How many ways are there to put one black queen and one white queen on an 8-by-8 chessboard so they can’t capture each other (that is, neither can move onto the other’s square)? (Hint: think about how far the black queen is from the edge of the board.)
(programming required) Write a program to verify your solution to the previous exercise.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here