8 Queens Problem

Grant Edwards grante at visi.com
Mon Jul 15 14:36:05 EDT 2002


In article <mailman.1026221774.20130.python-list at python.org>, Simon.Foster at smiths-aerospace.com wrote:

> Just For Fun!
> 
> I've been working on a solution to the eigth queens puzzle.
> Here is my attempt.  There's a solution in Scheme in SICP
> which takes only 13 lines.  Can anyone come up with a shorter
> solution in Python, without any of the obvious silliness?

Or, if you like obvious silliness, here's one with a Tkinter
user-interface that shows the chess-board as it solves the
problem...

ftp://ftp.visi.com/users/grante/python/queens.py

-- 
Grant Edwards                   grante             Yow!  Is this "BIKINI
                                  at               BEACH"?
                               visi.com            



More information about the Python-list mailing list