src/gamemechanics/Sensor.java
public static MapLocation predictEnemyMovement(RobotInfo enemy, int rounds) {
		if (enemyRobotInfos[lasti] != null) {
			for (RobotInfo oldData : enemyRobotInfos[lasti]) {
				if (enemy.getID() == oldData.getID()) {
					Direction dir = oldData.location.directionTo(enemy.location);
					float distance = rounds * oldData.location.distanceTo(enemy.location);
					return enemy.location.add(dir, distance);
				}
			}
		}
		return null;
	}
/**
	 * Try to Predict the next move of the enemy based on his last move Used to
	 * win these important Soldier 1v1's
	 * 
	 * @param enemy
	 *            the enemy this turn
	 * @param rounds
	 *            how many turns
	 * @return null if no prediction is possible the enemy location next turn
	 *         otherwise
	 */
Try to Predict the next move of the enemy based on his last move Used to
win these important Soldier 1v1's

@param enemy
the enemy this turn
@param rounds
how many turns
@return null if no prediction is possible the enemy location next turn
otherwise
Try to Predict the next move of the enemy based on his last move Used to win these important Soldier 1v1 ' s @param enemy the enemy this turn @param rounds how many turns @return null if no prediction is possible the enemy location next turn otherwise
public static MapLocation predictEnemyMovement(RobotInfo enemy, int rounds) {
		if (enemyRobotInfos[lasti] != null) {
			for (RobotInfo oldData : enemyRobotInfos[lasti]) {
				if (enemy.getID() == oldData.getID()) {
					Direction dir = oldData.location.directionTo(enemy.location);
					float distance = rounds * oldData.location.distanceTo(enemy.location);
					return enemy.location.add(dir, distance);
				}
			}
		}
		return null;
	}
public static MapLocation predictEnemyMovement ( RobotInfo enemy , int rounds ) { if ( enemyRobotInfos [ lasti ] != null ) { for ( RobotInfo oldData : enemyRobotInfos [ lasti ] ) { if ( enemy . getID ( ) == oldData . getID ( ) ) { Direction dir = oldData . location . directionTo ( enemy . location ) ; float distance = rounds * oldData . location . distanceTo ( enemy . location ) ; return enemy . location . add ( dir , distance ) ; } } } return null ; }
Try to Predict the next move of the enemy based on his last move Used to
 win these important Soldier 1v1's
Try to Predict the next move of the enemy based on his last move Used to win these important Soldier 1v1 ' s