TeamRobot Teammates Property Robocode Robot API for .NET
Returns the names of all teammates, or null there is no teammates. The length of the string array is equal to the number of teammates.


public void Run()
    // Prints Out all teammates 
    string[] teammates = GetTeammates();
    if (teammates != null)
        foreach (string member in teammates)

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

public string[] Teammates { get; }

Property Value

Type:  OnlineString 
See Also