12 dominating knights puzzle (backtracking)
问题 I've been searching for hours and haven't found a fully working solution for this kind of puzzle yet. So I followed similar problem with bishops. What I need to do is place 12 knights on the chess board in such a way, that all free squares of the board are attacked by at least one piece. The final result should look like this: The problem is that my program only tries different combinations with two last pieces and then somehow crashes. EDITED What I have done so far: #include <iostream>