initial commit for labryinth project on git_hub.

Signed-off-by: philippe lhardy <philippe@pavilionartlogiciel>
This commit is contained in:
philippe lhardy
2014-12-24 17:28:23 +01:00
commit 850744326a
14 changed files with 2106 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
package org.artisanlogiciel.games;
public class Position {
private int x, y;
private int depth;
public Position(int x, int y,int depth){
this.x=x;
this.y=y;
this.depth=depth;
}
public Position(int x, int y){
this.x=x;
this.y=y;
this.depth=0;
}
public int getX()
{
return this.x;
}
public int getY()
{
return this.y;
}
public int getDepth()
{
return depth;
}
public String toString()
{
return "(" + x + "," + y + ")" + "/" + depth ;
}
}