AdvancedRobot 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. SetAhead(Double), SetFire(Double), SetTurnLeft(Double) etc. Otherwise, these calls will never get executed.

In this example the robot will move while turning:
Examples

SetTurnRight(90);
SetAhead(100);
Execute();

while (DistanceRemaining > 0 && TurnRemaining > 0)
{
    Execute();
}

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

public virtual void Execute()
See Also