From 351bb3bc2d219f855aa1cc5da12fc597457b5a92 Mon Sep 17 00:00:00 2001 From: Christopher Beckmann Date: Mon, 9 Nov 2015 13:20:27 +0100 Subject: [PATCH] Removed Errors, so it could be compiled. --- .idea/modules.xml | 2 +- app/app.iml | 13 +------------ .../sudoku/controller/GameController.java | 8 ++++---- Sudoku.iml => privacy-friendly-sudoku.iml | 2 +- 4 files changed, 7 insertions(+), 18 deletions(-) rename Sudoku.iml => privacy-friendly-sudoku.iml (70%) diff --git a/.idea/modules.xml b/.idea/modules.xml index 7bcd847..3a3eea2 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -2,8 +2,8 @@ - + \ No newline at end of file diff --git a/app/app.iml b/app/app.iml index 75b2ddb..f33ee01 100644 --- a/app/app.iml +++ b/app/app.iml @@ -1,5 +1,5 @@ - + @@ -97,16 +97,5 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/java/tu_darmstadt/sudoku/controller/GameController.java b/app/src/main/java/tu_darmstadt/sudoku/controller/GameController.java index 8aea071..b042be9 100644 --- a/app/src/main/java/tu_darmstadt/sudoku/controller/GameController.java +++ b/app/src/main/java/tu_darmstadt/sudoku/controller/GameController.java @@ -51,7 +51,7 @@ public class GameController { public boolean isSolved() { boolean solved = true; - + /* for(int i = 0; i < size; i++) { List set = new ArrayList(); @@ -66,7 +66,7 @@ public class GameController { if(!checkList() solved = false; if(!checkList(gameField.getColumn(i))) solved = false; if(!checkList(gameField.getSection(i))) solved = false; - } + }*/ return solved; } @@ -76,13 +76,13 @@ public class GameController { * @return true if every cell has a value and every value occurs only once */ private boolean checkList(GameCell[] list) { - List set = new ArrayList(); + /*List set = new ArrayList(); for(GameCell c : list) { if(set.contains(c.getValue())) { errorList.add(new CheckError()); } - } + }*/ return false; } diff --git a/Sudoku.iml b/privacy-friendly-sudoku.iml similarity index 70% rename from Sudoku.iml rename to privacy-friendly-sudoku.iml index 95bbf83..fffb1a7 100644 --- a/Sudoku.iml +++ b/privacy-friendly-sudoku.iml @@ -1,5 +1,5 @@ - +