Leading a shot? Like firing a gun?Depends on a lot of factors. Gravity, Earth's rotation (yes you have to compensate for that), yada yada yada.
I'm sorry, but what is Robocode?It sounds cool.
http://forum.blockland.us/index.php?topic=191886.0I made a topic for it.Basically, code robots out of javascript and then pit bots against bots.
Minus wind, rotation of earth, gravity, pretty much just Velocity of the object, direction of the object, and distance of the object are the only needed factors.
Oh it's a 2D game thing. I thought you were engineering a robot.
What Keonesan said, the only real required variables for leading a shot are the ones he listed, Velocity, direction and distance of the object are all that matter