Coding Golf gives you a whole golf course viewed from directly overhead. You guide a groundskeeper named Fred through a secret round on the island links where he works, aiming to take home the Broken Links trophy. It plays like real golf rather than mini golf: long drives, careful club picks and a wind gauge you cannot ignore. It began as a js13k entry in 2020.
The Goal
Finish all 18 holes in as few strokes as possible. Each hole is a twisting strip of fairway surrounded by deep blue water, running from a red tee to a flag on a pale green circle. Par sits between 3 and 6 depending on length. A panel in the top left lists the yardage to the cup, your stroke count, par and the club in your hand.
How a Round Plays Out
First you line up the orange aiming line, which also shows how far the current club will carry. The bag holds 19 clubs, from a 1 Wood that flies about 278 yards to a putter that rolls only 10.
Next comes the swing, which takes three presses. The first press starts the needle. The second press, as it rises toward 100, fixes your power. The third press, as it falls back, sets accuracy, and you want it as near to 0 as possible. If the needle overshoots 100, the game picks the power for you and adds a small sideways error.
The ball counts as holed once it stops within roughly 2 yards of the cup. Water costs a stroke and a replay from the same spot, and bunkers kill your roll and weaken the next swing. After each hole you see your result, such as Birdie or Bogey, and the card splits totals into Out and Home.
Keys and Buttons for Coding Golf
| What you do | ⌨ 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 | — |
Winning Strategies
- Club up into the wind. The arrow and mph reading in the top right shift after every shot, and a stiff headwind can rob a lot of yards.
- Settle for a little less power. Stopping the needle at 90 is safer than gambling near the top and spraying the ball.
- Play the dogleg, not the flag. A direct line often crosses water, so two shorter shots along the fairway are usually cheaper than one risky carry.
- Switch to a wedge early. Wedges cover roughly 30 to 115 yards, which is where most approach shots land.
Common Mistakes
- Leaving the driver in hand on short holes and flying straight over the green.
- Rushing the third press and turning a good drive into a hook.
Who Should Play It
This suits players who like slow, thoughtful sports games where timing and planning matter more than reflexes. If you enjoy overhead golf, putting puzzles or other turn-based sports challenges, a round here is a calm way to spend twenty minutes.
Played and checked by the KBHX Games team · updated











