What it does
Every day at 00:01 UTC a new board is posted. Tap a cell to place a mirror, tap again to flip it, once more to remove it; the beam redraws instantly. Light every target and you are done, with three stars if you used the proven minimum number of mirrors. Each weekday has its own twist: open boards, mines the beam must not touch, splitters that fork the beam, and two colours that each need their own target.
Why it belongs on Reddit
The result card shows how many mirrors everyone else needed, your streak, and a one-tap Share my result in the comments that posts as you. Anyone can build a board and publish it as its own post; the solver works out the par so others can try to beat the creator. Past days stay playable from an in-game archive.
How we built it
Devvit Web with a plain TypeScript + SVG client (no engine), a server that re-traces every submitted solution instead of trusting the client, and Redis for results, distributions and streaks. A generator produced 420 days of boards; an independent brute-force checker proves the par of every one. The feed card renders from postData, so it appears without a server round trip. Devvit Journeys events are wired in.
Challenges we ran into
Making the minimum provable (an exhaustive search with no pruning as a second opinion), keeping duplicate submits and half-failed writes from corrupting the distribution without transactions, and making taps land on the right cell in every feed-card aspect ratio.
How to play
Open the daily post, press Play, tap cells to place mirrors until every target lights up.
Built With
- devvit
- redis
- svg
- typescript