5 queens

Grant Edwards grante at visi.com
Sat Dec 22 23:36:16 EST 2007


On 2007-12-23, Grant Edwards <grante at visi.com> wrote:
> On 2007-12-22, cf29 <fcharlypillai at gmail.com> wrote:
>
>> The goal is to control all the chess board with five queens that do
>> not attack each other. 
> [...]
>> My problem starts now. How can I find the next solution and
>> append it to the list? Has anyone tried to do a such script?
>
> ftp://ftp.visi.com/users/grante/python/queens.py
>
> It's a pretty standard depth-first search of the solution space.

Never mind.  I just realized that you said 5-queens, not
8-queens.


-- 



More information about the Python-list mailing list