RateControlRobot TurnRate Property Robocode Robot API for .NET
The robot's clockwise (right) rotation per turn, in degrees.

This call returns immediately, and will not execute until you call Execute() or take an action that executes.

Note that both positive and negative values can be given as input, where negative values means that the robot turns counterclockwise (left)

Examples

// Set the robot to turn right 10 degrees per turn
TurnRate = 10;

// Set the robot to turn left 4 degrees per turn 
// (overrides the previous order)
TurnRate = -5;

...
// Executes the last TurnRate
Execute();

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

public double TurnRate { get; set; }

Property Value

Type: OnlineDouble
See Also

RateControlRobot TurnRate