Fred works on an island golf course, and one day he sneaks out to play a full round. You take his shots across 18 holes, with the Broken Links trophy as the prize. The course is seen from straight above, so every hole looks like a winding green path through dark water.
Coding Golf unblocked was made by Jasper Renow-Clarke for the js13k contest in 2020. Despite the name, there is no programming involved. It is a proper golf game with clubs, wind, hazards and a swing meter you have to time.
How to play Coding Golf
Each hole runs from a red tee to a flag set on a pale green circle. The info box in the upper left gives the distance in yards, your stroke count, par and your club. Turn your aim left or right with the orange line, which also shows how far your current club will carry.
Swinging takes three presses. The first starts the meter. The second sets your power as the needle rises. The third, made as the needle swings back, sets accuracy, and stopping it close to zero gives a straight shot. Miss on one side and the ball hooks, miss on the other and it slices.
Water costs a penalty stroke and sends the ball back to where you hit from. Sand stops the ball where it lands, and shots out of it lose power and wander off line. The ball drops when it settles close to the cup. After each hole you see your result, and the scorecard keeps the front and back nine.
Controls
| To… | Keyboard | Mouse |
|---|---|---|
| Start a round, close the scorecard | Space or Enter | Click |
| Turn your aim left or right | Left and Right arrows | Scroll wheel |
| Change club | Up and Down arrows | — |
| Start the swing, set power, set accuracy | Space or Enter (three presses) | Click three times |
| Show the scorecard | S | — |
Tips
- Club up into the wind. The wind arrow and speed change after every shot, and a strong headwind can steal a lot of distance.
- Don't chase full power. Letting the needle run past the top makes the game set power for you and pushes the shot slightly off line.
- Swap clubs early on the approach. The putter only rolls about 10 yards, so switch to a wedge before you are close enough to overshoot.
- Play the fairway's shape. Holes zigzag, and aiming straight at the pin often means flying over water. Two dry shots beat one splash.
- Plan around bunkers by the green. Many holes guard the green with sand, and getting out costs both distance and direction.
Coding Golf questions
Is Coding Golf a programming game?
No. The name is just a playful title. You aim, choose clubs and time a swing meter, and no code is needed.
How do I see my scorecard?
Press S at any time to open it. It shows each hole's par next to your stroke count, split into the front and back nine.
Why is there no music?
The original tunes came from an old commercial game, so this copy leaves them out. The golf itself plays exactly as before.
Can I play on a tablet?
Only with a keyboard attached. Club changes use the arrow keys, which a touch screen can't replace. A mouse helps with aiming but isn't enough on its own.