src/main/java/de/uapcore/sudoku/Field.java

changeset 22
06170a0be62a
parent 12
1c62c6009161
--- a/src/main/java/de/uapcore/sudoku/Field.java	Tue Jul 28 14:05:04 2020 +0200
+++ b/src/main/java/de/uapcore/sudoku/Field.java	Tue Jul 28 14:27:14 2020 +0200
@@ -152,6 +152,17 @@
     }
 
     /**
+     * Checks the modified state of a specific cell.
+     *
+     * @param x horizontal position
+     * @param y vertical position
+     * @return the modified state
+     */
+    public boolean isCellModified(int x, int y) {
+        return cells[x][y].isModified();
+    }
+
+    /**
      * Sets the modified state of all cells.
      *
      * @param modified the modified state

mercurial