solved using Genetic Algorithms

the position of the queens are the genes and each board set up is an
individual.
random population of individuals is made and "mated" based on how few
queens can attack each other.