I think I've found a bug:
thor@bravo:~/perl> queens.pl -n 10 [a10 b8 c6 d9 e1 f1 g1 h7 i5 j2]
Wouldn't e1, f1, and g1 all be able to attack one another?

thor


In reply to Re: The N-queens problem using pure regexes by thor
in thread The N-queens problem using pure regexes by Abigail-II

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":