There is a more effective solution to this problem: divide the board in two parts 4 columns in each. Then solve two subproblems for each combination of 4 from 8 rows in each part. Furthermore, we can check for the equivalent rows in each part. This can cut down on the number of combinations.
« Last edit by ndv on Wed Jun 25, 2008 6:02 pm. »