diff --git a/VerifButton.java b/VerifButton.java index 822ac3b..8c14218 100644 --- a/VerifButton.java +++ b/VerifButton.java @@ -28,15 +28,14 @@ public class VerifButton implements ActionListener { int comparateur; int evaluant; - boolean valide = true; + boolean valide = true; + int[] list_region; for (int i = 0; i < this.GRID_SIZE; i++) { for(int j = 0; j < this.GRID_SIZE; j++) { - if (grid[i][j].getText().isEmpty()) { + if (!grid[i][j].getText().isEmpty()) { - }else{ - evaluant = Integer.parseInt(grid[i][j].getText()); @@ -106,6 +105,26 @@ public class VerifButton implements ActionListener { } //test de validité sur la région + + if ( i < 3) { + + if ( j < 3) { + + for (int v = 0; v < 3; v++) { + for (int w = 0; w < 3; w++) { + + if (!grid[v][w].getText().isEmpty()) { + + list_region.add(grid[v][w].getText().isEmpty()); + + } + } + } + + + + + } }