The Eight Queens Puzzle

Warning: PHP Has Moved On Since Program Was Written So Your Mileage May Vary!

Instructions: You want to ultimately place eight queens on the board in such a way that no queen can capture any other. Enter the file (a through h) and rank (1 through 8) to place the queen and press the Place the Queen button.

Place a Queen on the Board

File Rank

Choose a file that does not have a queen yet, then a rank that also has no queen yet. Your choice will be reflected in the diagram at right. You start out with 64 available squares. With each choice you make, the number of available squares becomes smaller and smaller, until they are all used up (or not valid)!

Sort Your Guesses

File Rank

Ascending: Descending:

Beginner: Expert:


Send all feedback, positive or negative to donaldsmallidge at Thanks for trying the Eight Queens Puzzle!

NOTE: The revised page is still under construction, so I haven't addressed the user interface aspects of the puzzle yet, having just got it to display on non-IE browsers. I will try to get it working again soon.

If there is no chess board diagram visible, the appropriate software to run this program is not available at this time. You may use the menus to obtain further information about the program and related technology. Please contact the author for assistance.

If you click on buttons and see the source code for a PHP program, this is a pretty good indication that the program is not working as designed. The good news is that the server is probably not adequately configured to run this program. Please contact the author if you would like to help fix any PHP issues.

The White Queen Mary I Elizabeth I Mary II Anne Victoria Elizabeth II The Black Queen

This page is based on the Final Project for CIS433 (XML Course at UMA) and did not reflect the browser, platform, nor operating system preferences of the author when written [originally it only worked with Microsoft Internet Explorer on a PC running Windows]. With advice from Mike Harley (and the W3C), the XML and XSLT logic should work on all browsers now [let me know if you have a problem with your browser]. This page also uses PHP (and thus only functions if executed on a server with an appropriate version of PHP); it is a bit fragile at the moment because I am trying to modify everything to work with the new W3C approach to XSLT. Please be assured that as soon as I have the time, I will rewrite this page using cross-browser, cross-platform considerations uppermost in my design (i.e., Java).