Place 8 queens on a chess board so that no queen can kill another in a single move.
Solution:
One possible solution is to place the queens at the following coordinates: (1, 5), (2, 3), (3, 1), (4, 7), (5, 2), (6, 8), (7, 4), and (8, 6). This arrangement ensures that no two queens threaten each other, as they are positioned such that no two queens share the same row, column, or diagonal.
Another valid arrangement is:
B B B B B B B Q
B B B Q B B B B
Q B B B B B B B
B B Q B B B B B
B B B B B Q B B
B Q B B B B B B
B B B B B B Q B
B B B B Q B B B
Comments (5)
in case you didnt already know, a chess board is 8x8
i think this is right, correct me if im wrong
B= blank
Q= queen
in case the letters were'nt easily understood
BQBBBBBB
BBBQBBBB
BBBBBQBB
BBBBBBBQ
BBQBBBBB
QBBBBBBB
BBBBBBQB
BBBBQBBB
That's not quite possible, as queens can go diagonally too.
they don't hit any other queens diagonally, try it
B Q B B B B B B
B B B Q B B B B
B B B B B Q B B
B B B B B B B Q
B B Q B B B B B
Q B B B B B B B
B B B B B B Q B
B B B B Q B B B
(hope this helps)
B B B B B B B Q
B B B Q B B B B
Q B B B B B B B
B B Q B B B B B
B B B B B Q B B
B Q B B B B B B
B B B B B B Q B
B B B B Q B B B
Add a Comment or Suggest an Answer