Inspiration
I love Papers, Please and rule-guessing games like Zendo. The best moment in both is when the rule suddenly clicks. I wanted that moment in a few minutes a day, right in the Reddit feed.
What it does
You're the new bouncer at tonight's party, and nobody told you who's on the list. The host judges the first four guests while you watch. Then it's your door: let each guest in or turn them away, and the host tells you if you were right.
Guests differ in six ways you can see: color, shape, eyes, hat, what they carry and pattern. The secret policy is about one or two of them. Make 8 right calls in a row to crack it. The fewer mistakes you make, the higher you rank.
Everyone in the subreddit gets the same party, so the comments are where the theories go (in spoiler tags). After your shift:
- Comment my result posts your spoiler-free grid under the pinned comment
- The pinned comment is a live leaderboard, and it reveals the policy when the party closes
- Your streak shows in your user flair
- The result card names tonight's trickiest guest
A new party opens every day. Mondays are easy and Saturdays are devious.
How I built it
It runs on Devvit Web with TypeScript, a Hono server and Redis. Every character is drawn in code as SVG and every sound is synthesized, so it loads fast in the feed. It works on phones and desktop, with keyboard controls, screen-reader descriptions and an option to show color names.
The server makes each day's puzzle and checks it before it's posted. By a set point in the line, every other policy that's just as simple (or simpler) has been ruled out, so a careful player can always work it out in time. The answer never reaches the browser. The server judges each guest as it arrives, so nobody can peek.
Challenges
The hardest part was fairness. A rule-guessing game is only fun when the clues are good, so every puzzle is tested against about 1,900 possible policies before anyone plays it.
Speed was the other one. Every call goes to the server, and early on a slow connection meant a long wait or an error. Now each call is one quick write, a dropped request retries by itself, and if the server is slow the host just says "Checking the list…".
What I learned
In a fast game, half a second feels long. Keeping the server work small mattered as much as the art.
What's next
Player-made policies: build one from dropdowns, the community votes, and the winner runs on a future night with its maker credited. Players can upload photos and create their own rules! (who goes in and who goes out!)
Built With
- css3
- devvit
- devvit-web
- hono
- html5
- node.js
- redis
- svg
- typescript
- vite
- vitest
- web-audio-api