예제 #1
0
 public void clean() throws Exception {
   af.countNonEmptyCells();
   moveToQuadrant(1, 1);
   turn(Direction.RIGHT);
   while (af.checkFieldEmpty() == false) {
     fire();
     if (af.checkBulletOutOfField() == true) {
       move(Direction.DOWN);
       turn(Direction.RIGHT);
     }
   }
 }
예제 #2
0
 public void callMoveToQuadrantParams(Direction direction) throws Exception {
   turn(direction);
   fire();
   move(direction);
 }