Learn R Programming

miner (version 0.1.2)

turnLeft: Rotate the player heading to the left

Description

Use a positive angle value to rotate to the left. Use a negative angle to rotate to the right. The player does not turn in the game; rather, the heading for subsequent movement commands is rotated.

Usage

turnLeft(player_id, angle = 90)

Arguments

player_id

An integer with the player id

angle

The number of degrees to rotate left

Examples

Run this code
# NOT RUN {
turnLeft(myid)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab