I am trying to solve for an attacking queens problem (which is a variation of the N-Queens problem): using two parameters, where N > 3 and k ≥ 0, to place on an N × N boa