I think this kind of programming is called forward checking. so you during the way to find the right solution you automatically remove the positions that queen cant have position there. So e.x depth first search every positions and in the end give the solution, while this code search only the position allowed !! It is like that or no.
Mod Edit: Split from this topic.
Please don't reopen an old topic for your new question. Start your own topic.
Mod Edit: Split from this topic.
Please don't reopen an old topic for your new question. Start your own topic.