From PinataIsland.info, the Viva Piñata wiki
In "Viva piñata:Trouble in Paradise,You can play golf with candy.
To start playing golf,you'll first need to dig a seed hole,Then buy a piece of candy(Romance candy is cheapest) Last,Pull out your shovel & putt(X) it towards the seed hole. When you sink a putt,You'll get a bronze chocolate coin! You can bounce the candy off of objects to sink putts!. To make longer putts,Zoom out from the candy & lower your veiw,To make short shots,Zoom in & go as high as you can.