<== Back to Robocode Tournament page
Your strategy to touch the SittingDucks may not work every time. Sometimes the SittingDucks aren't in the formation you need them to be in. But you have three tries.
You won't get time bonuses, but getting rid of SittingDucks simplifies the task of touching them all.
See the onScannedRobot method documentation.
For a robot e that you scan, you can get data such as distance (e.getDistance()) and bearing (e.getBearing()). But another item of data you can get is the energy of the scanned robot. A SittingDuck that hasn't been damaged yet has full energy; that's a SittingDuck that you haven't tagged yet.