queens = Queens.new while true do queens.evaluate queens.dump queens.calc break if queens.solution end