Codes for robot competition