--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>MilkyWaySolver</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
--- /dev/null
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
--- /dev/null
+040005000
+001002000
+300600700
+706800000
+000000000
+000000045
+020094000
+000000000
+800000600
\ No newline at end of file
--- /dev/null
+
+public class CheckSolver {
+ //check each grid remains 1 possibility
+ void Solver(Grid Base[][]){
+
+ }
+}
\ No newline at end of file
--- /dev/null
+
+public class Filler {
+ void filler(Grid Base[][], int x, int y, int a){
+ int blockx = x/3;
+ int blocky = y/3;
+ int i,j;
+
+ for(i=0;i<9;i++){
+ //vertical & horizontal filler
+ Base[x][i].checker[a]=1;
+ Base[i][y].checker[a]=1;
+ }
+
+ for(i=0;i<3;i++){
+ for(j=0;j<3;j++){
+ //area filler
+ Base[blockx*3+i][blocky*3+j].checker[a]=1;
+ }
+ }
+ }
+}
--- /dev/null
+
+public class Grid {
+ int result;
+ int[] checker = new int[9];
+}
--- /dev/null
+
+public class HRemainSolver {
+
+}
--- /dev/null
+import java.io.BufferedReader;
+import java.io.FileReader;
+import java.io.IOException;
+import java.util.Arrays;
+
+public class Matrixmaker {
+ char [][] TempArray = new char [9][9];
+ int x,y;
+
+
+ void Initialize(Grid[][] Array){
+ for(int t1=0; t1<9; t1++){
+ for(int t2=0; t2<9; t2++){
+ Array[t1][t2] = new Grid();
+ Arrays.fill(Array[t1][t2].checker, 0);
+ Array[t1][t2].result=0;
+ }
+ }
+ try {
+ FileReader in = new FileReader("file.txt");
+ BufferedReader br = new BufferedReader(in);
+ String line;
+ while ((line = br.readLine()) != null) {
+ for(y=0; y<9; y++){
+ TempArray[x][y] = line.charAt(y);
+ Array[x][y].result = Integer.parseInt(""+TempArray[x][y]);
+ Filler fill = new Filler();
+ fill.filler(Array,x,y,Array[x][y].result);
+ }
+ x++;
+ }
+ } catch (IOException e) {
+ System.out.println(e);
+ }
+ }
+}
--- /dev/null
+
+public class MilkyWaySolver {
+ public static void main(String[] args) {
+ Grid [][] Base = new Grid[9][9];
+ int x = 0;
+ int y = 0;
+
+ Matrixmaker mm = new Matrixmaker();
+ mm.Initialize(Base);
+ CheckSolver sl = new CheckSolver();
+
+ for(int loop=0; loop<5; loop++){
+ sl.Solver(Base);
+ System.out.println("End loop "+loop+".");
+ }
+
+ for(x=0; x<9; x++){
+ for(y=0; y<9; y++){
+ System.out.print(Base[x][y].result);
+ }
+ System.out.println("");
+ }
+ }
+}