A toy construction system comprising: a plurality of releasably interconnectable construction elements (201, 301) including one or more function construction elements each for performing a corresponding function, each function construction element including control connection means for communicating with one or more other construction elements of the toy construction system; a data processing system having stored thereon computer program code adapted to cause, when the computer program code is executed by the data processing system, the data processing system to provide a programming environment for generating one or more logic commands for controlling the one or more function elements; characterised in that the system further comprises an interface construction element comprising • first connection means for providing a data-flow connection with the data processing system and for receiving said logic command from the data processing system, • a processing unit adapted to convert said logic command into a control signal for controlling a function of said at least one function construction element, and • second connection means for providing a control connection with the at least one function construction element via the control connection means of the function construction element, and for outputting the control signal; wherein the interface construction element is adapted to detect at least a presence of the function construction element releasably connected to the interface construction element; and to send information indicative of at least the presence of the connected function construction element to the data processing system; and wherein the computer program code is adapted to cause the data processing system to provide an adapted programming environment responsive to the received information about at least the presence of the connected function construction element. a plurality of releasably interconnectable construction elements (201, 301) including one or more function construction elements each for performing a corresponding function, each function construction element including control connection means for communicating with one or more other construction elements of the toy construction system; a data processing system having stored thereon computer program code adapted to cause, when the computer program code is executed by the data processing system, the data processing system to provide a programming environment for generating one or more logic commands for controlling the one or more function elements; characterised in that the system further comprises an interface construction element comprising • first connection means for providing a data-flow connection with the data processing system and for receiving said logic command from the data processing system, • a processing unit adapted to convert said logic command into a control signal for controlling a function of said at least one function construction element, and • second connection means for providing a control connection with the at least one function construction element via the control connection means of the function construction element, and for outputting the control signal; • first connection means for providing a data-flow connection with the data processing system and for receiving said logic command from the data processing system, • a processing unit adapted to convert said logic command into a control signal for controlling a function of said at least one function construction element, and • second connection means for providing a control connection with the at least one function construction element via the control connection means of the function construction element, and for outputting the control signal; wherein the interface construction element is adapted to detect at least a presence of the function construction element releasably connected to the interface construction element; and to send information indicative of at least the presence of the connected function construction element to the data processing system; and wherein the computer program code is adapted to cause the data processing system to provide an adapted programming environment responsive to the received information about at least the presence of the connected function construction element.