Go back
Eight Queens Puzzle...

Eight Queens Puzzle...

Only Chess

e

Joined
29 Jan 07
Moves
3612
Clock
18 Feb 08
Vote Up
Vote Down

I'm sure this has been spoken about many times already, but for anyone who doesn't know, try this...

"The eight queens puzzle is the problem of putting eight chess queens on an 8×8 chessboard such that none of them is able to capture any other using the standard chess queen's moves. The queens must be placed in such a way that no two queens would be able to attack each other."

For anyone who can't do it, google offers the answer

e

Joined
29 Jan 07
Moves
3612
Clock
18 Feb 08
Vote Up
Vote Down

this is the best site for trying it out...

http://www.blackdog.net/games/board/8queens/index.html

ABC
Siachmat!

Porthmadog

Joined
12 May 06
Moves
17753
Clock
18 Feb 08
Vote Up
Vote Down

I had to try and write an algorithm to do this puzzle in a university scholarshsip exam last year, can't remember how it went now!

z

127.0.0.1

Joined
27 Oct 05
Moves
158564
Clock
18 Feb 08
1 edit
Vote Up
Vote Down

Originally posted by Ari Brenin Cymru
I had to try and write an algorithm to do this puzzle in a university scholarshsip exam last year, can't remember how it went now!
I assume you wrote it recursively? or is there a more elegant solution than brute force?

ABC
Siachmat!

Porthmadog

Joined
12 May 06
Moves
17753
Clock
18 Feb 08
Vote Up
Vote Down

Originally posted by zebano
I assume you wrote it recursively? or is there a more elegant solution than brute force?
I dunno it was about a year ago, don't know if it was even correct. Got an award anyway so something was right about it! Didn't end up studying Computer science anyway!

MD

Leuven

Joined
04 Jan 07
Moves
3160
Clock
18 Feb 08
Vote Up
Vote Down

there is an algorithm and according to Wikipedia it's simple🙂

Don't want to look down on your work, not at all, I would never be able to think of this myself.
Too bad for you Wikipedia didn't exist in those days

http://en.wikipedia.org/wiki/Eight_queens_puzzle

Cookies help us deliver our Services. By using our Services or clicking I agree, you agree to our use of cookies. Learn More.