-
This image is currently processing. Please be patient...
Play it
Demo post: https://www.reddit.com/r/creased_daily_dev/comments/1ybpwb9
Inspiration
Most daily games are about words or numbers. We wanted one you can feel with your hands: a single sheet of paper, folded until it shows the right picture. Paper has two sides, and that is the whole trick. Every fold flips part of the sheet over, so the colours on the back come into play.
What it does
Every day at 00:00 UTC, Creased posts one new sheet to the subreddit. Everyone gets the same sheet.
- Look at the Target picture.
- Tap a dashed crease, then tap the side you want to flip over it.
- Keep folding until the sheet matches the target. Par is the fewest folds that can do it. Fewer folds wins, and time breaks ties.
When you solve it, you see:
- How the sub folded it: a chart of how many folds everyone used, with your bar highlighted, and the share of players who hit par.
- A leaderboard for the day (fewest folds, then fastest).
- Your streak, shown as user flair in the subreddit ("Folding streak 5").
- Post my result: one tap adds a spoiler-free comment with your folds, time and streak, so the thread becomes the day's scoreboard.
Difficulty follows the week: Monday is gentle (par 2) and the weekend is hardest (par 4). Each colour also has a shape (circle, triangle, square, diamond), so the game works without colour vision.
How we built it
- Devvit Web with React 19 and Tailwind for the post, and Hono on the server.
- One shared puzzle model (
fold.ts) for client and server. A sheet is a grid of stacks; a fold mirrors one side across the crease, reverses each stack and flips every layer. - Seeded daily generation. The date seeds a generator that makes random folds, then a breadth-first solver proves par is the true minimum. Every sheet is fair, and no puzzle data needs to be stored.
- Server-side checking. The client sends its moves; the server replays them before anything counts for streaks or the leaderboard.
- Redis for results, the daily chart, leaderboards and streaks. The scheduler posts each new sheet, and the install trigger posts the first one.
- The fold is a real 3D flip animation in CSS, showing the back colours as the paper turns.
Challenges
Making every daily sheet fair. Random folds often produce a target that can be reached in fewer moves, which would make par a lie, so the generator keeps only sheets where the solver confirms par. We also found that shuffling with a random sort comparator gave different puzzles in different JavaScript engines, so we replaced it with a seeded Fisher-Yates shuffle and now the client and server always agree.
What's next
Community-made sheets: let players design a sheet and have the best one become a future daily puzzle.
Note
Built from Reddit's devvit-template-react starter; everything else was written during the hackathon.
Built With
- devvit
- hono
- react
- redis
- tailwindcss
- typescript
- vite