/** Called every round. */ @Override public void run() throws GameActionException { while (!RC.isActive()) { RC.yield(); } Robot[] robots = Utils.RC.senseNearbyGameObjects(Robot.class, 35, ENEMY_TEAM); Utils.RC.setIndicatorString(1, "" + robots.length); for (int i = 0; i < robots.length; ++i) { messagingSystem.writeAttackMessage(Utils.RC.senseRobotInfo(robots[i]).location); messagingSystem.writeMicroMessage(Utils.RC.senseRobotInfo(robots[i]).location, 1); } makeSomeNoise(); }