Upgrade to Chess.com Premium!

8 queens puzzle

Jump to forum:
 
21st October 2008, 12:28am
#1
by munchkin
brampton, ontario Canada
Member Since: Aug 2007
Member Points: 167

i am taking a java programming class in college and one of the bonus questions was to write a program that solves the 8 queens puzzle. I had never heard of that before and I found it interesting. I was wondering how many people on here have done that puzzle?\

For those that don't know the puzzle, you have to take 8 queens and place them on a chessboard in such a way that none of them are attacking each other.

21st October 2008, 12:39am
#2
by vijaykulkarni
Pune, Bharat India
Member Since: Mar 2008
Member Points: 25261

We did this long back.. very interesting as there are no of solutions for each starting position of first Queen.. Principle is that Qs are seperated by N distance (as we called it)  i.e. a position N can go to in one step..

24th July 2010, 08:46pm
#3
by BigFuzzyOne
Temple, TX United States
Member Since: Apr 2010
Member Points: 354

I used to give it as an extra assignment to my chess students. Some of them occasionally got it.

 

Add your comment:

Join Chess.com for free to add your comment! Already a member? Then login now to comment.