RateControlRobot Execute Method Robocode Robot API for .NET
Executes any pending actions, or continues executing actions that are in process. This call returns after the actions have been started.

Note that advanced robots must call this function in order to Execute pending set* calls like e.g. VelocityRate, SetFire(Double), TurnRate etc. Otherwise, these calls will never get executed.

Any previous calls to "movement" functions outside of RateControlRobot, such as SetAhead(Double), SetTurnLeft(Double), SetTurnRadarLeftRadians(Double) etc. will be overridden when this method is called on this robot class.


In this example the robot will move while turning:
VelocityRate = 6;
TurnRate = 7;

while (true)

Namespace: Robocode
Assembly: robocode (in robocode.dll) Version:

public override void Execute()
See Also