heyho i have tried that my archon moves away from the nearest enemy, but when no enemy is nearby he should move randomly, so i have made this code. :
Direction randomdir = randomDirection();
RobotInfo robots = rc.senseNearbyRobots(10);
RobotInfo robots = rc.senseNearbyRobots(10, enemy);
MapLocation myLocation = rc.getLocation();
Direction toEnemy = myLocation.directionTo(Robots.Location);
Direction awayFromEnemy = tobullet.opposite();
So but the archon dont moves he just stands still. Does someone see the error?