Updated for testing
Signed-off-by: Tony Grosinger <github2@grosinger.net>
This commit is contained in:
parent
893faa9140
commit
f0c8b783fa
Binary file not shown.
@ -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())
|
||||||
|
Reference in New Issue
Block a user