seems like a pretty big undertaking... I would suggest taking "baby steps"... how about building a robot that can consistently swing a club at a ball at a fixed location and sent it 1 meter straight forward so it lands in a cup. Then the next step would be to incorporate some type of sensor that can determine how far the cup is from the robot and adjust the force of the swing accordingly. Then the next step would be to make the robot mobile and have it seek out the ball and position itself appropriately so it is lined up with the cup.