Inspiration

The best daily games are tiny, fair and social: one puzzle, the same for everyone, and a score worth talking about. Lights-out puzzles have a satisfying "click" to them, but they get stale once you learn the trick. We asked: what if the rule itself changed every day?

What it does

Glowgrid drops a fresh grid of glowing cells into a Reddit post every day at 00:01 UTC. Tap cells to switch every light off in as few taps as possible.

The twist is the daily stamp. A tap flips every cell covered by that day's stamp shape — Plus, Cross, Ring, Block, Comet, Diamond or Bolt — so each day of the week plays like a different puzzle. Weekdays are 5×5, weekends are a harder 6×6, and difficulty climbs from Monday to Sunday.

  • Same board for everyone, generated from the date.
  • Exact par. The server solves each board over GF(2), so par is the true minimum. Hitting par is the daily bragging right.
  • Leaderboard and rank per puzzle: fewest taps wins, time breaks ties, and replays keep your best run.
  • Streaks for solving the current day's puzzle on consecutive days.
  • Spoiler-free score cards posted to the comments with one tap, so the thread becomes the daily scoreboard.
  • Made for thumbs. On a phone, press and hold a cell to preview exactly which cells the stamp will flip, release to tap, or slide off the board to cancel. On desktop, hover previews and click taps. Undo and Reset are free.
  • Learn it in five seconds. First-time players get a one-card tutorial that animates today's stamp on a mini board; the ? button brings it back.
  • Stuck? Take a hint. 💡 Hint lights up one tap from a shortest solution of your current board. Each hint adds 2 taps to your score, so you can always finish, but an assisted run never ties a clean par.
  • Come back tomorrow. The results card counts down to the next grid and its new stamp.
  • Archive posts stay playable without touching your streak.

How we built it

Glowgrid is a Devvit Web app written in TypeScript with no frontend framework. The splash card in the feed shows today's stamp, par and how many players have solved it; tapping Play opens the expanded game view.

The puzzle core (src/shared/puzzle.ts) is shared by client and server. Boards are generated from a seeded PRNG keyed on the puzzle number, by applying random stamp presses to an empty board, so every board is guaranteed solvable. The server then runs Gaussian elimination over GF(2) and searches the null space to find the true minimum number of taps. Boards whose par is below the day's target difficulty are regenerated.

The server never trusts the client's score: it replays the submitted taps on the official board and only records the run if every light is off, adding 2 taps for each hint used. The same exact solver runs in the browser for hints: it solves the board you are looking at right now, so a hint is still optimal after a few wrong taps. Leaderboards are Redis sorted sets that pack taps and seconds into one score; streaks and lifetime stats live in a Redis hash per user. The Devvit scheduler creates each day's post, and results are shared as comments through the Reddit API.

Challenges we ran into

Some stamps (Ring, Diamond, Block) make the toggle matrix singular, which means many different tap sets can solve the same board. A naive solver reports a valid solution, not the shortest one. We solved this by enumerating the null space after elimination, which gives an exact par in a few milliseconds even on 6×6 boards.

Keeping difficulty steady across very different stamps was the other challenge: the same number of random presses produces an easy board with one stamp and a brutal one with another. Generating against a per-weekday minimum par keeps Monday friendly and Sunday hard regardless of the shape.

Accomplishments that we're proud of

  • Par is mathematically exact for every puzzle, every day.
  • Seven stamps make one simple rule feel like seven games.
  • Scores are verified server-side, so the leaderboard is fair.
  • The whole loop — play, rank, share, come back tomorrow — happens inside one Reddit post.

What we learned

Devvit Web made it easy to keep the game a plain web page while still using Reddit-native pieces: interactive posts, Redis, the scheduler and comments. We also learned how much a tiny rule change (the stamp) does for replayability.

What's next for Glowgrid

  • Community-made stamps: let subscribers vote on next week's shapes.
  • Weekly "marathon" posts with a chain of boards.
  • User flair for streak milestones.

Built With

Share this project:

Updates

Submission history