Judges' tour: test it in 60 seconds

  1. Open https://www.reddit.com/r/refract_daily_dev and tap Play on the pinned bonus board (Medium, par 4) or on today's pinned daily.
  2. Tap silver mirrors to turn them. Light every crystal in its exact colour (red + blue = violet). Your very first puzzle gives you one free undo.
  3. On the results screen, tap Share result as comment, then open Leaderboard and Glow map.
  4. Scroll to the comments on yesterday's daily to see the app's stickied recap (podium plus a spoilered par solution).

Delightful UX

  • One idea you get in seconds: tap a mirror and the beam bends; light every crystal in its exact colour. Beams mix additively (red + yellow = orange, yellow + blue = green), and too much light is just as wrong as too little.
  • The feed card shows the live board with a one-line hook, a gentle beam-sweep animation and a single Play button.
  • The how-to opens with a tiny live board you solve yourself. First-time players get one free undo, and practice replays are unscored.
  • Juicy feedback: crystals pop and chime as they light, a burst of light fires when you solve, stars reward par, and the sound is synthesized with a mute switch. Colour-blind letter labels are one tap away.
  • Built for phones: large touch targets, and the expanded view works in Reddit's mobile and desktop clients.

Polish

  • Every board is solver-verified. Par is the true minimum number of taps (the minimum Hamming distance to any solved mirror state), so three stars always means you found the shortest path.
  • The server replays each submitted move list and records a score only if the board really ends solved.
  • Consistent difficulty naming (Easy, Medium, Hard, Expert, Fiendish), no dead states, and logged-out players can play (logging in saves rank and streak).
  • All art is SVG and all sound is synthesized in the browser. There are no third-party assets.

Reddity

  • The comments are the scoreboard: one tap posts a spoiler-free result strip from your own account (🟩 for each tap up to par, 🟧 after that).
  • Streak flair: solve on consecutive days and your user flair shows your streak.
  • Per-post leaderboard with Snoovatars, a histogram of how everyone did, and a glow map of which mirrors the community turned.
  • Players make the puzzles: the workshop lets anyone build a board and publish it as their own post. The server checks it is solvable, scrambles the mirrors and sets par. The best-upvoted ones become Community Picks, credited to their author.
  • Together today: every solve of the daily adds to a sub-wide glow goal.
  • Moderator tools: post today's puzzle if one is ever missing, drop an extra Fiendish bonus board, and feature a workshop puzzle. Workshop titles are filtered (no links or slurs) and limited to 3 a day.

Daily Content

  • A new board is posted and pinned every day at 00:01 UTC, with a weekly rhythm: Easy on Monday, Fiendish at the weekend.
  • Yesterday's post gets a distinguished, stickied recap: solver count, podium, and the par solution behind a spoiler. Every daily stays playable, so the subreddit becomes an archive.
  • Solstice Glyphs (Dec 9-16, the judging week): every daily you solve in that window reveals a golden glyph, and older dailies from the window count too, so a missed day can be caught up. Collect all eight and unscramble the hidden word before the solstice to earn a ☀ flair. Before Dec 9 the feed card shows a countdown. We tested the full Dec 9-16 run end to end with automated tests; the gallery's Solstice screenshot is a preview using sample data.

How we built it

Devvit Web: React 19 with a hand-written SVG renderer on the client, Hono on the server, Redis for leaderboards, results, streaks and heat maps, and the scheduler for the daily post.

  • engine.ts is shared by client and server. It handles beam tracing with splitters and loop protection, a solver that enumerates every mirror state to find all solutions and the minimum-tap par, and a seeded generator with per-weekday difficulty specs.
  • Unit tests cover the engine and a simulated Solstice week.

Challenges

Making par fair: a random scramble can be "solved" in many ways, so par is the minimum distance to any solved state, and the generator rejects boards whose solution space is too loose.

What's next

Weekly themed boards and a monthly community puzzle contest.

Built With

Share this project:

Updates

Submission history