Skip to content
KBHXgamesAll games

Play Coding Golf Online

A top-down golf round of 18 island holes where club choice, wind and a three-press swing decide every shot.

Coding Golf gameplay screenshot
  • Best with keyboard & mouse

Coding Golf at a glance

Genre
Sports Games
Play with
Keyboard, Mouse
On phones
Best on a computer
Players
1 player
Price
Free, no sign-up
License
MIT

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

Keyboard, mouse and touch controls for Coding Golf
What you do⌨ Keyboard🖱 Mouse
Start a round, close the scorecardSpace or EnterClick
Turn your aim left or rightLeft and Right arrowsScroll wheel
Change clubUp and Down arrows—
Start the swing, set power, set accuracySpace or Enter (three presses)Click three times
Show the scorecardS—

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

Coding Golf: Questions and Answers

Is Coding Golf free to play?

Yes. It runs in your browser at no cost, with no account and no download. A full round of 18 holes takes a short session, and you can start a new round from the title screen whenever you finish one.

How do I stop hooking and slicing the ball?

Your third press sets direction. As the needle swings back, stop it between 0 and 5 for a straight shot. Pressing late, past 5, curves the ball one way, while letting it drop below 0 bends it the other way.

Can I play Coding Golf on a phone or tablet?

It is not a good fit. Club changes rely on the Up and Down arrow keys, so you need a physical keyboard. A mouse can aim and swing, but it cannot switch clubs on its own.

If You Liked Coding Golf, Try These