November 25, 2009

Eight queens problem



Place 8 queens in 8X8 chessboard such that none of them able to
capture any other by standard moves of queen. That is no 2 queens
would be able to attack each other.
[also try general queens problem of placing n queens in nxn chessboard]

3 comments:

  1. Where the bottom left of the board is (0,0) and upper right of the board is (7,7)...

    (0,2) (1,4) (2,1) (3,7) (4,0) (5,6) (6,3) (7,5)

    ReplyDelete
  2. study artificial intelligence...computer course b tech nsit.

    ReplyDelete
  3. Mirrorman *love-love*July 28, 2012 at 10:54 PM

    |___|___|___|_q_|___|___|___|___|
    |___|___|___|___|___|_q_|___|___|
    |___|___|___|___|___|___|___|_q_|
    |___|_q_|___|___|___|___|___|___|
    |___|___|___|___|___|___|_q_|___|
    |_q_|___|___|___|___|___|___|___|
    |___|___|_q_|___|___|___|___|___|
    |___|___|___|___|_q_|___|___|___|

    ReplyDelete