What it is

One Shot is a daily putting game. Every day at 12:00 UTC a new hole appears as a post, and every player gets exactly one putt at it. There is no second try, so the putt matters.

When your ball stops, the green fills with everyone else's. You see who got closest, you can tap any ball to replay that player's putt, and you find out whether the slope fooled everyone or just you.

How a day goes

  1. The post shows today's hole as a poster with one button: Take your shot.
  2. You read the green. It is drawn like a walking map: lighter ground is higher, thin lines join equal heights, and small arrows point downhill.
  3. You drag a ring to where you want the ball to stop on flat ground. Bright dots show the first stretch of the real path, so you can see the slope start to bend it.
  4. You putt. Once.
  5. The camera moves in on the cup, a tape measures your miss, and the other balls pop in one by one.
  6. The scorecard shows your distance, your place, and your streak. From there you can comment your result, replay anyone's putt, or take practice putts that do not count.

What makes it a Reddit game

  • The shared green is the game. The fun is in comparing: 60 balls short and left tells a story that a score table cannot.
  • No spoilers. Other balls stay hidden until you have putted, so the comments can argue about the line without ruining it.
  • A clubhouse in every post. A pinned comment carries yesterday's podium, and "Comment my result" replies under it from the player's own account, only when they tap it.
  • Replays. Every putt is stored as an aim point and replays exactly, so you can watch how the leader did it.
  • Streaks, and flair if you want it. Playing on consecutive days builds a streak that a player can choose to wear as flair.
  • Old holes stay open. Each post keeps its own hole and its own board, so the subreddit becomes a course you can walk back through.
  • Logged-out players can putt. If they sign in afterwards, that same putt goes on the green.

Daily content

Holes are built from the date, so every community gets the same one. Monday and Tuesday are gentle, midweek brings rails and gaps to thread, and weekends are the hard ones. Six kinds of feature (open ground, gates, elbows, pegs, guards and sand) combine with hills and hollows, and each hole gets a name such as "Hairpin" or "The Doorman".

Every hole is tested before it is posted. The builder plays thousands of putts on it and only accepts a hole that can be holed, cannot be holed by aiming straight at the cup, and has no slope steep enough to roll a ball forever.

How I built it

  • Devvit Web, with an inline poster view for the feed and a full-screen game.
  • One physics file shared by the browser and the server. It uses only add, subtract, multiply, divide and square root, so both sides get identical results. The server replays every putt and its answer is the one that counts; a player's first putt is the only one stored.
  • Redis sorted sets hold each day's board. A ball's aim and resting place are packed into the sorted-set member, so the whole green loads in two reads however many people have played.
  • Canvas 2D for everything on the green: terrain shading, contour lines by marching squares, slope arrows, and the camera move after the putt.
  • A scheduler job posts the hole each day and pins the clubhouse comment. It is safe to run twice, and it retries every hour if a post fails.
  • Devvit Journeys events mark app ready, journey start on the first finished aim, progress on the putt, and journey end with the result.
  • Sound is synthesised in the browser, with a mute button, and stops when the tab is hidden.
  • 24 automated tests cover the physics, the hole builder and the game rules, and a scripted play-through runs 20 situations at six screen sizes.

I built it with help from Claude Code.

Challenges

  • Making the browser and the server agree on every putt to a tenth of a millimetre. Trigonometry differs between JavaScript engines, so the physics avoids it entirely.
  • Showing slope on a flat top-down picture so a first-time player can read it in a few seconds.
  • Keeping "one putt" strict without leaving players with nothing to do. Practice putts solved that: they are free, and they never touch the board.

What I learned

Joining a community on a player's behalf only works for approved apps, so that button stays hidden until review. And a daily game needs its reason to return built into the first minute: for One Shot that is the streak, the podium in tomorrow's clubhouse comment, and wanting to see where everyone else ended up.

What's next

Live arrivals on the green as other people putt, a weekly "course" that totals your seven distances, and community-designed holes.

The screenshots were taken on a local test build, so the other players shown in them are test data.

Built With

Share this project:

Updates

Submission history