A basic_bot can only move forward towards the direction it is facing. In order for it to move to its left, it must first turn to the left and then move the desired distance. To go backwards, the basic_bot must turn to the left twice, move the desired number of squares, and then turn to the left twice again. By turning to the left, we mean the basic_bot rotates counter-clockwise (CCW) while remaining on the same square. If the basic_bot is facing north, after turning to the left the basic_bot would be facing west.
A basic_bot only knows how to turn to the left in 90 degree increments. In order to turn around, it must turn left twice. In order to turn to the right, it must turn left three times.Turning left four times would be a complete waste of time and could make the basic_bot dizzy.
A basic_bot has three cameras facing front, left, and right; there is no visibility to the rear. The cameras are only sensitive enough to detect blocks and other basic_bot's on adjacent grid squares. The cameras can therefore detect any object that would prevent it from occupying the square to the front, left, or right. Since obstacles are detectable, it is an error to attempt to move a basic_bot into an obstacle.
The basic_bot can also detect and count beepers, but only on the square the basic_bot is currently occupying. A basic_bot is considered to be next to a beeper if the basic_bot occupies the same square as the beeper but not if the beeper is on an adjacent square. A basic_bot can pick up a beeper only if it is next to the beeper and even then only one beeper at a time. Because beepers are detectable, it is an error to attempt to pick a beeper if there aren't any next to the basic_bot.
Beepers are carried by the basic_bot in a bag, and a basic_bot can pick a beeper from its bag and put it down next to the basic_bot. The basic_bot keeps track of the number of beepers in its bag so it can detect if the bag is empty. Therefore, it is an error to attempt to put down a beeper from the bag if the bag is empty. There is no limit to the number of beepers that can be carried in the bag.
You can also go:
Created on 16 June 1995
Last revised 22 January 1997