1
0

Updated for testing

Signed-off-by: Tony Grosinger <github2@grosinger.net>
This commit is contained in:
Tony Grosinger 2011-04-23 20:04:28 -07:00
parent 893faa9140
commit f0c8b783fa
2 changed files with 9 additions and 1 deletions

View File

@ -34,8 +34,16 @@ public class SampleDrone implements Drone {
@Override @Override
public EnumMove move() { public EnumMove move() {
if (DEBUGGINGALL) if (DEBUGGINGALL){
System.out.println("SampleDrone initiating move..."); System.out.println("SampleDrone initiating move...");
System.out.println("Current X = " + tools.getX());
System.out.println("Current Y = " + tools.getY());
if(tools.inSafeZone()){
System.out.println("I am in a safe zone");
}else{
System.out.println("I am not in a safe zone");
}
}
if (tools.canMoveEast()) if (tools.canMoveEast())
return EnumMove.East; return EnumMove.East;
else if (tools.canMoveSouth()) else if (tools.canMoveSouth())