Enter your email address:


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:

Anonymous said...

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)

. said...

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

Mirrorman *love-love* said...

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