\b;Exercise
Defend against all enemy attacks

\b;General idea
The range of your cannon is about 40m. The category of the enemies is \c;AlienAnt\n;. Turn towards the closest ant, even if it is still more than 40m away. But shoot only when it is closer than 40m, in order not to waste your energy.

\b;Useful instructions
\c;\l;radar\u cbot\radar;\n; to detect your enemies (category \c;\l;AlienAnt\u object\ant;\n;)
\c;\l;direction\u cbot\direct;\n; to calculate a direction
\c;\l;distance\u cbot\dist;\n; to calculate a distance
\c;\l;fire\u cbot\fire;\n; to fire your cannon
\c;\l;wait\u cbot\wait;\n; to wait

\t;See also
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.
