Robot Run Method Robocode Robot API for .NET
The main method in every robot. You must override this to set up your robot's basic behavior.

Examples

// A basic robot that moves around in a square 
public void Run()
{
    while (true)
    {
        Ahead(100);
        TurnRight(90);
    }
}

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

public virtual void Run()

Implements

IRunnable Run 
See Also