The Golfer is built from the Lego Spike Essential educational kit. When you set the ball in the desired position, the color sensor reacts and the golfer makes his shot.
The set includes step-by-step building instruction and an example of program (in Spike environment).