This is described here.
The robot is able to take decision by itself.
The AI program controls the behaviour of the robot and makes strategic choices using information sensed from the environment.
It is implemented on the IO board.
Available actions for the robot depend of its current state. This state is described using Automatons or FSM (Finite State Machines).
Used FSM can be found on specific pages: