IBasicRobotPeer 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. SetMove(Double)SetFire(Double), SetTurnBody(Double) etc. Otherwise, these calls will never get executed.

In this example the robot will move while turning:
Examples

SetTurnBody(90);
SetMove(100);
Execute();

while (GetDistanceRemaining() > 0 && GetTurnRemaining() > 0)
{
    Execute();
}

Namespace: Robocode.RobotInterfaces.Peer
Assembly: robocode (in robocode.dll) Version: 1.9.3.0
Syntax

void Execute()
See Also