// If our tile is threatened we should retreat unless the enemy is quicker than us // If the enemy can advance and fire before we can move away we might as well stand and fight private static boolean shouldRetreat() { if (myType == RobotType.LAUNCHER && rc.getMissileCount() == 0) return true; return threats.isThreatened(myLoc) || threats.inMissileRange(); }