An oil spill is discharge of fluid petroleum such as crude oil or its by-product derivations such as diesel and gasoline on the water surface. In this paper, a numerical model of the oil spill has been introduced as a simulation of releasing oil on the sea surface. Meantime, the influence of sea waves and wind has been considered and shown. Moreover, a swarm of robots is engaged in order to track the spreading boundaries of the slicked oil, so that a novel schedule of robot locomotion is presented, based on the online sharing information in the flock network. Therefore, the swarm of robots tracks the oil spill margins intelligently and successfully.