IRobotSnapshot ContestantIndex Property Robocode Control API for .NET
Contains the contestant index, which is unique for each robot or team participating in a battle. Note: If a team of robots is participating in a battle, this method will return the team index (see TeamIndex); otherwise the robot index (see RobotIndex) is used instead. This method is used for the battle results as scores are calculated for either a team of robots or individual robot.

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

int ContestantIndex { get; }

Property Value

Type: OnlineInt32
The contestant index of the robot or team.
See Also