Exemple #1
0
 public Move(Ant ant, Position currentPosition) {
   this.ant = ant;
   this.currentPosition = currentPosition;
   this.toPosition = ant.getPosition();
   this.isAntDead = ((currentPosition.getX() == -1) && (currentPosition.getY() == -1));
   this.turnWhere = ant.getDirection();
 }