Removed Errors, so it could be compiled.

This commit is contained in:
Christopher Beckmann 2015-11-09 13:20:27 +01:00
parent b4a651a332
commit 351bb3bc2d
4 changed files with 7 additions and 18 deletions

View file

@ -2,8 +2,8 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/Sudoku.iml" filepath="$PROJECT_DIR$/Sudoku.iml" />
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" /> <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
<module fileurl="file://$PROJECT_DIR$/privacy-friendly-sudoku.iml" filepath="$PROJECT_DIR$/privacy-friendly-sudoku.iml" />
</modules> </modules>
</component> </component>
</project> </project>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="Sudoku" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> <module external.linked.project.id=":app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" external.system.module.group="privacy-friendly-sudoku" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager"> <component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle"> <facet type="android-gradle" name="Android-Gradle">
<configuration> <configuration>
@ -97,16 +97,5 @@
<orderEntry type="library" exported="" name="design-23.1.0" level="project" /> <orderEntry type="library" exported="" name="design-23.1.0" level="project" />
<orderEntry type="library" exported="" name="appcompat-v7-23.1.0" level="project" /> <orderEntry type="library" exported="" name="appcompat-v7-23.1.0" level="project" />
<orderEntry type="library" exported="" name="support-annotations-23.1.0" level="project" /> <orderEntry type="library" exported="" name="support-annotations-23.1.0" level="project" />
<orderEntry type="module-library">
<library name="JUnit4">
<CLASSES>
<root url="jar://$APPLICATION_HOME_DIR$/lib/junit-4.11.jar!/" />
<root url="jar://$APPLICATION_HOME_DIR$/lib/hamcrest-core-1.3.jar!/" />
<root url="jar://$APPLICATION_HOME_DIR$/lib/hamcrest-library-1.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component> </component>
</module> </module>

View file

@ -51,7 +51,7 @@ public class GameController {
public boolean isSolved() { public boolean isSolved() {
boolean solved = true; boolean solved = true;
/*
for(int i = 0; i < size; i++) { for(int i = 0; i < size; i++) {
List<Integer> set = new ArrayList<Integer>(); List<Integer> set = new ArrayList<Integer>();
@ -66,7 +66,7 @@ public class GameController {
if(!checkList() solved = false; if(!checkList() solved = false;
if(!checkList(gameField.getColumn(i))) solved = false; if(!checkList(gameField.getColumn(i))) solved = false;
if(!checkList(gameField.getSection(i))) solved = false; if(!checkList(gameField.getSection(i))) solved = false;
} }*/
return solved; return solved;
} }
@ -76,13 +76,13 @@ public class GameController {
* @return true if every cell has a value and every value occurs only once * @return true if every cell has a value and every value occurs only once
*/ */
private boolean checkList(GameCell[] list) { private boolean checkList(GameCell[] list) {
List<Integer> set = new ArrayList<Integer>(); /*List<Integer> set = new ArrayList<Integer>();
for(GameCell c : list) { for(GameCell c : list) {
if(set.contains(c.getValue())) { if(set.contains(c.getValue())) {
errorList.add(new CheckError()); errorList.add(new CheckError());
} }
} }*/
return false; return false;
} }

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="Sudoku" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> <module external.linked.project.id="privacy-friendly-sudoku" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager"> <component name="FacetManager">
<facet type="java-gradle" name="Java-Gradle"> <facet type="java-gradle" name="Java-Gradle">
<configuration> <configuration>