JuniorRobot TurnAheadLeft Method Robocode Robot API for .NET
Moves this robot forward by pixels and turns this robot left by degrees at the same time. The robot will move in a curve that follows a perfect circle, and the moving and turning will end at the same time.

Note that the max. velocity and max. turn rate is automatically adjusted, which means that the robot will move slower the sharper the turn is compared to the distance.

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

public void TurnAheadLeft(
	int distance,
	int degrees


Type: OnlineSystem Int32
The amount of pixels to move forward
Type: OnlineSystem Int32
The amount of degrees to turn to the left
See Also