Autonomous unmanned aerial vehicles (UAVs) operating as a swarm can be deployed in austere environments, where cyber electromagnetic activities often require speedy and dynamic adjustments to swarm operations. Use of central controllers, UAV synchronization mechanisms or pre-planned set of actions to control a swarm in such deployments would hinder its ability to deliver expected services. We introduce artificial intelligence and game theory based flight control algorithms to be run by each autonomous UAV to determine its actions in near real-time, while relying only on local spatial, temporal and electromagnetic (EM) information. Each UAV using our flight control algorithms positions itself such that the swarm main-tains mobile ad-hoc network (MANET) connectivity and uniform asset distribution over an area of interest. Typical tasks for swarms using our algorithms include detection, localization and tracking of mobile EM transmitters. We present a formal analysis showing that our algorithms can guide a swarm to maintain a connected MANET, promote a uniform network spread-ing, while avoiding overcrowding with other swarm members. We also prove that they maintain MANET connectivity and, at the same time, they can lead a swarm of autonomous UAVs to follow or avoid an EM transmitter. Simulation experiments in OPNET modeler verify the results of formal analysis that our algorithms are capable of providing an adequate area coverage over a mobile EM source and maintain MANET connectivity. These algorithms are good candidates for civilian and military applications that require agile responses to the changes in dynamic environments for tasks such as detection, localization and tracking mobile EM transmitters.