X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/FreeShisen/blobdiff_plain/b023eec723db5ee6d0a6a6aca7795c391d98377e..d0e04237b00df7c11616f359200255a8b47e79d7:/src/org/proofofconcept/shisensho/Point.java diff --git a/src/org/proofofconcept/shisensho/Point.java b/src/org/proofofconcept/shisensho/Point.java deleted file mode 100644 index 7771ef5..0000000 --- a/src/org/proofofconcept/shisensho/Point.java +++ /dev/null @@ -1,30 +0,0 @@ -package org.proofofconcept.shisensho; - -class Point { - public Point(int i, int j) { - this.i=i; - this.j=j; - } - - public boolean equals(Point p) { - return (i==p.i && j==p.j); - } - - public String toString() { - return "("+i+","+j+")"; - } - - public static Point fromString(String s) { - String[] ij=s.split(",",2); - int i=Integer.parseInt(ij[0]); - int j=Integer.parseInt(ij[1]); - return new Point(i,j); - } - - public int i; - public int j; - - public Point copy() { - return new Point(this.i,this.j); - } -}