The Horse is built from the Lego Spike Essential educational kit. The movement of horse occures due to crank mechanism. The color sensor triggers when detect the appropriate color.
The set includes step-by-step building instruction and an example of program (in Spike environment).