Changeset 435 in Java_Quellcode_SOOP_Vorlesung for arrays/SudokuSolver.java


Ignore:
Timestamp:
Feb 14, 2020, 3:09:50 PM (5 years ago)
Author:
tr
Message:

Sudoku: Kleinigkeiten

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arrays/SudokuSolver.java

    r414 r435  
    206206        };
    207207
     208        int[][] sError = {
     209            {-4, -7, 0, 3, 0, -2, 0, -6, 0},
     210            {0, 0, -9, 0, 0, 0, -2, 0, 0},
     211            {0, -8, 0, 0, 0, 0, -7, 0, 0},
     212            {0, -5, 0, 0, -1, -9, 0, 0, 0},
     213            {0, 0, 0, -6, 0, -5, 0, 0, 0},
     214            {0, 0, 0, -2, -8, 0, 0, -5, 0},
     215            {0, 0, -3, 0, 0, 0, 0, -9, 0},
     216            {0, 0, -2, 0, 0, 0, -8, 0, 0},
     217            {0, -4, 0, -8, 0, -6, 0, -7, -2},
     218        };
     219/*
     220[4, 7, 1, 3, 2, 2, 5, 6, 9]
     221[3, 6, 9, 4, 5, 7, 2, 1, 8]
     222[2, 8, 5, 9, 6, 1, 7, 4, 3]
     223[6, 5, 8, 7, 1, 9, 3, 2, 4]
     224[1, 2, 4, 6, 3, 5, 9, 8, 7]
     225[9, 3, 7, 2, 8, 4, 6, 5, 1]
     226[8, 1, 3, 5, 7, 6, 4, 9, 2]
     227[5, 9, 2, 1, 4, 3, 8, 7, 6]
     228[7, 4, 6, 8, 9, 6, 1, 7, 2]
     229 */
     230       
    208231        int[][] sudoku;
    209232        sudoku = sudokuSchnell;
    210233        sudoku = sudokuLangsam;
     234        sudoku = sError;
    211235        // sudoku = sudokuLeer;
    212236
Note: See TracChangeset for help on using the changeset viewer.