src/de/uapcore/sudoku/Field.java

changeset 4
b8588e318001
parent 3
ed931970b4ac
child 5
8ddf4af937d7
--- a/src/de/uapcore/sudoku/Field.java	Sat Jan 26 18:38:12 2013 +0100
+++ b/src/de/uapcore/sudoku/Field.java	Sat Jan 26 18:43:49 2013 +0100
@@ -118,4 +118,12 @@
         }
         return false;
     }
+    
+    public void clear() {
+        for (int x = 0 ; x < 9 ; x++) {
+            for (int y = 0 ; y < 9 ; y++) {
+                cells[x][y].setValue(0);
+            }
+        }
+    }
 }

mercurial