💡 Inspiration
Daily puzzles have become one of the internet's most engaging daily rituals—from Wordle to Connections. However, when we looked at Reddit, the community was missing a truly tactile, spatial daily puzzle.
We took inspiration from the viral physical desk puzzle "A-Puzzle-A-Day" by DragonFjord. We wanted to transform that cozy, satisfying tabletop feeling into a digital, daily ritual native to Reddit's Interactive Posts: CalenDit. Every day, the board automatically locks onto the current date, challenging players to arrange 8 geometric polyomino pieces so that every square is covered except today's Month and Day!
🎮 What it does
- Automatic Daily Date Lock: The 43-cell calendar board automatically identifies and illuminates today's Month (Jan–Dec) and Day (1–31).
- 8 Proven Polyomino Pieces: Players get 8 distinct shapes (a $2 \times 3$ block and 7 pentominoes) styled in vibrant Reddit-themed colors.
- Fluid & Tactile Controls: Click to pick up, rotate ($90^\circ$ clockwise via
R), flip horizontally (viaF), and click on the board to place. Click any placed piece to pull it back into your hand. - In-Browser DFS Backtracking Solver: We integrated a mathematical depth-first search solver that ensures every single date is solvable and provides intelligent hints when a player gets stuck.
- Reddit-Native Virality (Wordle-Style Share Card): Upon solving, confetti erupts and players can copy an emoji spoiler card with their solve time, move count, and daily streak directly to the Reddit comment thread to compare with other redditors.
- Archive / Birthday Mode: Players can pick any date of the year (birthdays, anniversaries, past daily puzzles) to play in free-play practice mode.
🛠️ How we built it
- Platform: Built for Reddit's Developer Platform (Devvit Web), designed to run seamlessly inside Reddit Interactive Posts.
- Frontend Stack: React 19, TypeScript, and Tailwind CSS v4 bundled with Vite for sub-millisecond responsiveness.
- Audio: Synthesized sound effects (piece clicks, rotations, magnetic snaps, and victory fanfare) built using the native Web Audio API with zero external asset bloat.
- Math & Solver: Modeled the 7×7 calendar grid ($43 \text{ active tiles} - 41 \text{ polyomino tiles} = 2 \text{ target date tiles}$). The backtracking solver precomputes orientation bitmasks for instant collision checks.
- Testing & Video: Automated end-to-end tests and synced video demonstration built with Playwright and FFmpeg.
🧗 Challenges we ran into
- Mathematical Integrity: Ensuring that all 366 dates (including Feb 29 leap day) are 100% solvable with the chosen piece set. By adhering strictly to the proven 8-piece DragonFjord polyomino set, every date has between dozens and hundreds of winning permutations.
- Responsive Web-View Constraints: Reddit Interactive Posts run within constrained viewport dimensions across desktop and mobile app frames. We designed a modular grid system that scales smoothly across different screen ratios without scrolling.
- Instant Hint Generation: Writing a backtracking solver in pure TypeScript that prunes dead-end branches fast enough to deliver an instant hint without blocking the main UI thread.
🏆 Accomplishments that we're proud of
- Delivering a 100% fresh, unclaimed mechanic on Devvit with zero direct clones in the Reddit ecosystem.
- Building a completely self-contained game: zero backend database dependencies required for the core daily puzzle, with full offline mathematical solvability.
- Seamless Reddit community loop with the comment spoiler generator and daily streak tracking.
📚 What we learned
- The deep combinatorial mathematics behind polyomino packing and exact-cover problems.
- Modern Devvit Web architecture: pairing Vite and React inside Reddit's native interactive post ecosystem.
🔮 What's next for CalenDit
- Subreddit Leaderboards: Synchronizing daily completion times and median solve speeds to subreddit-specific Devvit Redis stores.
- Community Creator Challenges: Allowing subreddit moderators to post custom themed daily shapes and holiday special editions.
Built With
- devvit
- ffmpeg
- html5
- playwright
- python
- react
- tailwind-css
- typescript
- vite
- web-audio-api