Inspiration

Daily games work when they're quick to understand, hard to master, and fun to compare. We wanted a puzzle you can read at a glance, where the rule fits in one sentence and the satisfying moment is visible: a beam of light finally threading through every lantern, which then floats away.

What it does

Each day the app posts a new puzzle to the subreddit. One beam of moonlight enters the grid. Tap mirrors to turn them, and guide the light through every paper lantern using as few taps as possible.

  • Live feedback: the beam redraws after every tap, so you think by watching the light move.
  • Every tap counts: there's no undo. Turning a mirror back costs another tap.
  • True par: an exhaustive solver computes the exact minimum taps for every puzzle.
  • Weekly difficulty arc: Gentle Monday (5×5) up to Midnight Sunday (8×8), with bolted mirrors and rocks as the week goes on.
  • After you solve: star rating, rank, a chart of how everyone did against par, the day's top players, and your streak, best streak and at-par rate.
  • Share to comments: posts a spoiler-free result card to the thread from your account, which turns each daily post into a scoreboard conversation.
  • Archive: older daily posts stay playable; replays never overwrite your first score.

How we built it

  • Devvit Web: React 19 + Tailwind client in two entrypoints: a light inline splash for the feed and an expanded game view.
  • Server (Hono): Redis for results, a sorted-set leaderboard, histogram hashes and player stats. The Scheduler cron creates the daily post at 00:00 UTC. A moderator menu item and an install trigger post today's puzzle on demand.
  • Puzzle engine (shared TypeScript): a seeded generator walks a self-avoiding beam path, places mirrors at the turns and lanterns along the route, adds decoy mirrors and rocks, and scrambles the free mirrors. A brute-force solver over every reachable arrangement (at most 2^16) rejects puzzles whose par falls outside that weekday's band.
  • Anti-cheat: the client sends only its tap sequence. The server replays it against the canonical puzzle, checks that every lantern is lit, and times from the server-recorded start.
  • Polish: SVG board with a glow filter, a beam that draws itself, springy mirror rotation, flickering lit lanterns that rise on a win, haptics, keyboard play and reduced-motion support.

Challenges we ran into

  • Getting hard puzzles to actually be hard. Our first generator produced Sunday puzzles with par 3, because scrambled mirrors often allowed shortcuts. We tuned turn probability, scramble rate and board size per weekday, and test a full year of puzzles to confirm every par lands in its band.
  • Keeping the inline feed view fast: the generator and solver load only in the expanded view.

Accomplishments that we're proud of

  • Every puzzle is provably solvable at exactly par.
  • A full year of daily puzzles generates in about 1 second, so there's no stored content to run out of.
  • Unit tests cover the generator, the solver and the game rules (streaks, ranks, replays, forged answers).

What we learned

Small rules plus exact scoring make a better daily loop than big content. Showing the full distribution of results ("36% of players hit par") makes even a 2-star solve feel like part of the community.

What's next

  • Weekly leaderboard and user flair for streak milestones.
  • Community-made puzzles: players design a board, the solver verifies it and computes par, and the best get featured.
  • Colored beams and splitters for weekend specials.

AI usage disclosure

Built with Claude (Anthropic) as an AI coding assistant for design, code, tests and this write-up.

Built With

Share this project:

Updates

Submission history