The Eight Queens Puzzle

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

This page is the Final Project for CIS433 (XML Course at UMA) and does not reflect the browser, platform, nor operating system preferences of the author, Don Smallidge.
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. This will raise an error condition because DomDocument no longer behaves as it did when the program was first written. I am no longer working in PHP, but will try to fix the problem as time allows [any help would be much appreciated].

I have a dream, that someday all browsers everywhere will meet all the W3C requirements! : Sorry! This page is technologically challenged! It only works with Internet Explorer on Windows. It won't work with otherwise perfectly wonderful browsers such as Chrome, Safari, Netscape, Firefox, Opera, etc. This page also uses PHP (and thus only functions if executed on a server with an appropriate version of PHP).
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).

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!

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 the PHP issue.