Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for Lumen Links

Inspiration

Daily puzzles work because everyone shares the same small challenge and then compares notes. We wanted one that is tactile and instantly readable on a phone, where you can see your progress glowing as you go, and where "how well did you do?" has an honest answer. That's why par in Lumen Links is the proven minimum number of taps, computed by a solver, not a guess.

What it does

Lumen Links is an Interactive Post. Each UTC day a new board of conduit tiles appears, the same one for every redditor. Tap a tile to turn it a quarter turn. Light flows from the source through every connection that lines up. Make the whole network glow, waking every crystal with no loose ends, in as few taps as you can.

  • Same puzzle for everyone, every day. Boards are generated deterministically from the date, and each has exactly one solution.
  • Par is exact. A branch-and-bound solver computes the true minimum number of taps, so "Flawless" really means perfect.
  • 6×6 daily plus Hard 8×8 for people who want more.
  • Undo, reset, move counter, timer, and a crystals-lit progress meter.
  • Leaderboard for today, ranked by fewest taps and then fastest time. Your first solve is the one that counts.
  • Streaks. Solve today's puzzle on consecutive days to build your 🔥.
  • Result card with a medal (Flawless / Brilliant / Radiant / Lit), rank and streak.
  • Spoiler-free sharing. A "glow timeline" emoji bar shows how your network lit up over the solve, never where.
  • Optional "Comment my score" posts your result to the thread from your own account. It only happens when you press the button, after you've seen the exact text.
  • A new post every day automatically via the Devvit scheduler. Mods also get a one-tap "Create today's post" menu action.
  • Logged-out redditors can play. If they log in afterwards, their solve is saved.

How we built it

  • Devvit Web with a vanilla TypeScript client and no UI framework. The game bundle is about 22 KB and the splash about 10 KB, so the post opens in well under a second. Tiles are inline SVG rotated with CSS transitions. The whole visual identity is original: a midnight palette, amber light, aqua crystals.
  • Puzzle engine in pure, shared TypeScript modules:
    • a seeded PRNG (xmur3 + sfc32) keyed by date and mode;
    • a generator that grows a random spanning tree over the grid, picks a central branching tile as the source, turns the dead ends into crystals, and scrambles the tiles;
    • an exact solver that uses arc-consistency on shared edges, cycle and connectivity pruning, and branch-and-bound on tap cost. It rejects boards with more than one solution and returns par.
  • Server (Devvit node server + Redis): the server generates the puzzle, so the client never ships the solution. On submit, it replays your tap log to verify the solve. It times you from a server-side start ping. Leaderboards use sorted sets with a score of moves × 100000 + deciseconds. First-solve results, streaks and an idempotent per-day post registry live in Redis hashes.
  • Tests: 24 Node test-runner tests. They cover generator determinism, solvability and uniqueness for every day of a month in both modes, solver par against an independent brute-force enumerator (including multi-solution boards), leaderboard ordering, streak edge cases (month and year rollover, missed days, archive puzzles), share-text format, and the HTTP routes against an in-memory Redis.

Challenges we ran into

  • Making par honest. A naive "count the scramble" par is wrong whenever a board has alternative solutions. We built an exact solver and then went further: the generator only ships boards with a single solution. We verified the solver against exhaustive search on hundreds of small boards.
  • Fast enough for every request. Generation plus solving takes about 1 ms on average, so the server computes puzzles on demand with no precompute step.
  • Fair leaderboards without trusting the client. Replaying the move log on the server and timing on the server makes faked scores much harder, while keeping the API tiny.
  • Following Reddit's user-action rules. "Comment my score" is opt-in, separate from gameplay, shows the exact text first, and never gates anything.

Accomplishments that we're proud of

  • An exact, tested par for every daily board, and every board has a unique solution.
  • A sub-25 KB, framework-free client that still feels polished: springy rotations, light waves, crystal pops, and reduced-motion support.
  • A daily loop that runs itself: a scheduler post every day, streaks and a leaderboard.

What we learned

Constraint propagation does most of the work on network-style puzzles, and branch-and-bound handles the rest. On the platform side, Devvit Web's split of web view, server and Redis made a verified, cheat-resistant daily game straightforward.

What's next for Lumen Links

  • Themed weekly variants: wrap-around edges, prisms that split light, blocked cells.
  • A weekly league and a subreddit-vs-subreddit leaderboard.
  • An archive mode for past puzzles, plus a "perfect week" badge shown as user flair.
  • Reminder notifications for streak keepers (opt-in).

Try it

Built With

Share this project:

Updates

Submission history