Tuple <int, int, int> RunSolverFunction(SolverDelegate solverFunction) { Tuple <int, int, int> totals = new Tuple <int, int, int>(0, 0, 0); for (int counter = 1; counter <= StaticSudoku.Dimension; counter++) { int solved = 0; int eliminated = solverFunction(counter); if (eliminated > 0) { totals = totals.Add(eliminated, solved); totals = totals.Add(ScanNakedSingles()); } } return(totals); }
Tuple<int, int, int> RunSolverFunction(SolverDelegate solverFunction) { Tuple<int,int,int> totals = new Tuple<int, int, int>(0,0,0); for(int counter=1;counter<=StaticSudoku.Dimension;counter++) { int solved = 0; int eliminated = solverFunction(counter); if(eliminated > 0) { totals = totals.Add(eliminated, solved); totals = totals.Add(ScanNakedSingles()); } } return totals; }