Inspiration
Daily games work because everyone gets the same puzzle and then talks about it. On Reddit, the talking already happens in the comments, so we wanted a daily game where the comparison happens on the map itself, not only in a list of scores.
Hiking gave us the picture. On a busy mountain you can see where people walk: the grass wears thin into a path. Sentiero (Italian for "trail") turns that into a game. You draw your route, and afterwards you see the paths the whole subreddit wore into the same map.
What it does
Every day at 00:01 UTC the app posts a new mountain: a small hex map with a camp, a summit and six viewpoints. It is the same map for everyone.
- The puzzle. Draw one route from the camp to the summit flag. Every step costs energy (meadow 1, forest 2, rock 3) and lakes block the way. Each viewpoint is worth 20 points and each unit of energy left on the summit is worth 1. There is never enough energy for every viewpoint, so the real question is which ones to skip and which way round to go.
- One hike a day. You can plan as long as you like, but you only set off once. Your hiker walks the route, the score counts up, and you get a medal: gold for the best possible score, silver for every view at a higher cost, bronze for reaching the summit.
- The shared map. Then the map fills with everyone's trails, thicker where more people walked. You see your rank, how many hikers found the perfect route, and whether anyone else walked your exact route step for step.
- The route takes a name. The first player to find the perfect route gets it named after them. The next day the post reveals the best route as Via u/name, and the app's pinned comment under the new post says who found it.
- A passport. Every mountain you finish is a stamp in your passport, coloured by your medal. A missed day shows as an empty ring.
- Reddit-native sharing. "Post as comment" puts your result under the post: medal, score, viewpoints, energy left, and never the route, so there are no spoilers. A streak of two days or more shows as user flair ("3-day trail streak").
- A weekly rhythm. Each map says how many viewpoints its best route sees: 3 on Monday and Tuesday (gentle), 4 midweek (steady), 5 at the weekend (steep). Every mountain also has its own Italian name, like Cima del Falco.
- Archive maps. Older posts stay playable, and once you have hiked one you can see its best route.
The feed card shows the day's real map behind the title, how many hikers are out, and your score if you have already played, so the post invites you in before you open it.
How we built it
- Devvit Web: React 19 and TypeScript in the post, a Hono server on Devvit's serverless Node, Redis for storage. The map is plain SVG and the styles are plain CSS, with a dark theme.
- One file of rules.
src/shared/game.tsholds the map generator, the scoring and an exact solver. The server re-walks every submitted route with it, so a score can't be faked from the client. - A guaranteed perfect route. The solver finds the cheapest route for each of the 64 possible sets of viewpoints. The generator, seeded by the date, keeps building maps until the best route sees exactly that day's number of viewpoints within the energy. So every map has a perfect route, and its difficulty matches the day of the week. We generated 1,100 days ahead to check that none fails.
- The answer stays on the server. The client never receives the best score or the solver, only the map. The best route is sent only for archive maps.
- Safe counting. Each hike is saved once per player and day, then added to the leaderboard, score histogram and trail counts in one Redis transaction. If a request dies halfway, the next one finishes the job. Equal scores share a rank and the earlier finisher leads.
- Scheduler and triggers. A daily cron creates the post, the install trigger creates the first one, and a moderator menu item can create the day's post by hand. A lock makes sure there is only one post per day even if all three fire at once.
- Devvit Journeys report each session: game ready, first step, route ready, hike finished (with the medal), and fixed-name interactions such as opening the help, toggling trails or posting a comment.
- Game feel. The hiker is slower on rough ground, there is a score count-up, and Web Audio cues and vibration mark a viewpoint, a route that fits, running short of energy and each medal. Sound can be turned off, and the game respects reduced motion.
- Tests. 29 unit tests cover the rules, ranking, streaks and the whole hike store, which runs against an in-memory stand-in for Redis.
Challenges we ran into
- Making the puzzle fair and the right difficulty, every day, with no hand-made levels. Random maps were often trivial or impossible. Running the exact solver inside the generator, and fixing the target number of viewpoints for each weekday, made every map solvable and the week's difficulty predictable.
- Not shipping the answer. A daily puzzle is ruined if the solution is in the bundle. Separating the public puzzle from the solved one, and re-scoring on the server, took some restructuring.
- Commenting for the player. In playtests, Reddit posted the comment from the app's account for anyone other than the app's owner, without an error. We now check the author and, when needed, sign the comment with the player's name, so a result always says whose it is.
- Learning what one player sees. A shared-map game has to look right when you are the first hiker of the day, so every "everyone else" line has a version for one player.
Accomplishments that we're proud of
- The rules fit in four lines, yet the puzzle has real depth: which viewpoints to skip is a genuine decision every day.
- The moment after the walk, when your single trail becomes part of everyone's, is the core of the game, and it only works on Reddit.
- Naming the perfect route after its first finder gives people a reason to be early without any timer.
- Every map is guaranteed to have a perfect route, and no score can be faked.
What we learned
- Simple rules are only possible with a strict generator behind them: the fairness lives in code nobody sees.
- On Reddit the post itself is the social space, so the best features are the ones that create something worth commenting on: a named route, a medal, a streak.
- Playtesting on a real subreddit with a second account found problems no local preview could.
What's next for Sentiero
- A summit book: a one-line note left on the summit as a comment, shown on the map to the hikers who come after you.
- Weekly recaps in the subreddit: the week's named routes and the longest streaks.
- More seasons for the map, with snow, autumn colours and new terrain, without adding rules.