1. A method for driving an autonomous robotic device, comprising: generating light sensor data by a set of light sensors integrated within a bottom face of the autonomous robotic device, wherein the light sensor data corresponds to detected light that is emitted upward from or is reflected upward from a board upon which the autonomous robotic device is placed; following, by the autonomous robotic device, a line shown on the board using the light sensor data and thereby causing a color sensor coupled to the bottom face of the autonomous robotic device to be positioned over the line; generating color data by the color sensor, wherein the color data corresponds to a color of light that is emitted upward from or is reflected upward from the board upon which the autonomous robotic device is placed; and using the color data to detect, by the autonomous robotic device, a color pattern included in the line shown on the board; comparing, by the autonomous robotic device, the color pattern against a set of color pattern definitions; determining, by the autonomous robotic device, a match between the color pattern and a color pattern definition from the set of color pattern definitions; determining, by the autonomous robotic device, a function associated with the matched color pattern definition; and performing, by the autonomous robotic device, the function associated with the matched color pattern definition.