public static int[,] SolveAPuzzle(int[,] puzzle) { ASquare[,] infoPuzzle = new ASquare[9, 9]; for (int rowIndex = 0; rowIndex < ROW_SIZE; rowIndex++) { for (int colIndex = 0; colIndex < ROW_SIZE; colIndex++) { int puzzNum = puzzle[rowIndex, colIndex]; infoPuzzle[rowIndex, colIndex] = new ASquare() { Number = puzzNum }; } } for (int rowIndex = 0; rowIndex < ROW_SIZE; rowIndex++) { for (int colIndex = 0; colIndex < ROW_SIZE; colIndex++) { var thisSquare = infoPuzzle[rowIndex, colIndex]; if (thisSquare.Number == -1) { var conflictNumbers = GetConflictNumbers(infoPuzzle, rowIndex, colIndex); } } } return(null); }
public static int[,] SolveAPuzzle(int[,] puzzle) { ASquare[,] infoPuzzle = new ASquare[9, 9]; for (int rowIndex = 0; rowIndex < ROW_SIZE; rowIndex++) { for (int colIndex = 0; colIndex < ROW_SIZE; colIndex++) { int puzzNum = puzzle[rowIndex, colIndex]; infoPuzzle[rowIndex, colIndex] = new ASquare() { Number = puzzNum }; } } RefreshConflictNumbers(infoPuzzle); // TODO: Actually solve the puzzle return(puzzle); }