-
-
Trail builder: draw your own solution; skipped squares become rocks. Post it to the community.
-
The inline post in the feed shows the grid, how many players walked it, and your time.
-
Results: your time, rank, how everyone did, and the fastest trailblazers.
-
Walking today's trail: one line through every open square, arrows force your next step.
Inspiration
The best daily games are tiny: one puzzle, a couple of minutes, and then the fun of comparing with everyone else. Path puzzles ("draw one line through every square") are easy to understand at a glance and still give that satisfying click when the last square fills in. We wanted that loop to live inside a Reddit post, and we wanted the community itself to become part of the daily content.
What it does
One Trail posts a new grid to the community every day at 00:00 UTC. Start on the ring and drag one unbroken line that visits every open square exactly once. Rocks block the way, arrows force the direction you leave a square, and on easy days a flag marks where the trail must end.
- A week of trails. Difficulty ramps from a 5×5 on Monday to a "wild" 8×8 on Sunday, like a newspaper crossword.
- How everyone did. When you finish you see your time, your rank, a histogram of everyone's times with your bar highlighted, and the fastest trailblazers.
- Streaks. Solve the daily trail on consecutive days to build a streak.
- Share your time. One button posts your result (plus an optional note) as a reply under the post's pinned comment, from your own account, only after you confirm exactly what will be posted.
- Build a trail. Anyone can draw their own solution line on a 5×5 to 8×8 grid (skipped squares become rocks), add arrows, choose whether to show the flag, name it, and post it to the community. Every community trail has its own leaderboard.
- Yesterday's best community trail becomes today's bonus. When the daily post is created, the app picks the highest-voted community trail from the day before and features it in a Bonus tab, credited to its maker. Upvotes decide what the whole community plays next.
How we built it
- Devvit Web with a React 19 + Tailwind client: a light inline preview for the feed (the day's grid, how many players walked it, your time and streak) and an expanded game view.
- A Hono server on Devvit with Redis: sorted sets for leaderboards, hashes for time histograms and streaks.
- The scheduler creates the daily post just after 00:00 UTC (with a retry), and a moderator menu item can post it on demand without ever creating a duplicate.
- The day's grid is stored in postData, so a trail loads instantly.
- Community trails and shared results are submitted as the user, only from explicit buttons, following the Devvit user action rules.
- The server re-checks every finished trail move by move before accepting a time.
The puzzle generator
Every daily trail is generated from the date. Rocks are scattered, a depth-first search with a fewest-exits-first heuristic looks for a path through every open square, and arrows are placed along that solution, so every daily trail is guaranteed to be solvable. The generator, the trail checker and the compact grid encoding are shared between client and server and covered by unit tests (including generating 400 days of trails and checking each one against its solution).
Challenges we ran into
- Making dragging feel right on touch screens: fast swipes skip squares, so the board walks toward the finger one square at a time, and dragging back over your line undoes it.
- Keeping puzzles fresh but fair: early versions clumped all rocks in one corner. Scattering rocks and searching for a solution fixed that.
- Making the community features native without being pushy: sharing and posting are always separate, explicit choices that show what will appear on Reddit.
What's next
User flair for streaks, weekly "trail of the week" highlights from the community, and themed weeks.
Built With
- devvit
- hono
- react
- redis
- tailwind
- typescript
- vite