// ------------------------------------------------------------------------------- public static void Start() { // s_RowIndex = 0; s_ColumnIndex = 0; GridGenerator.Start(); s_Grids = GridGenerator.Grids; s_GridsSolver = GridGenerator.GridsSolver; // while (isConstant(s_Grids, 0, s_ColumnIndex)) { if (s_ColumnIndex > 8) { s_ColumnIndex = 0; } s_ColumnIndex++; } //GridDebug.T(s_ColumnIndex, "s_ColumnIndex"); Show(s_Grids); GridControl.Solver(s_Grids); MessageText.SudokuMenu(); MessageText.SudokuStatus(); MessageText.SudokuNewGame(); Keyboard(); }
// ------------------------------------------------------------------------------- public static void Solver() { // Проверка - заполнены все сетки. Global.StatusGridsFull = 0; for (int i = 0; i < 9; i++) { for (int j = 0; j < 9; j++) { if (s_Grids[i, j].Value != 0) { Global.StatusGridsFull++; } } } // if (Global.isStatusGridsFull()) { All(s_Grids); } MessageText.SudokuStatus(); }