Subtext — Daily Semantic Redaction & Community Deduction Game

Built for Reddit's Game of the Day Hackathon (2026)
Stack: Devvit Web, React 18, TypeScript, Tailwind CSS, Devvit Redis, Devvit Scheduler, and Devvit Journeys (@devvit/analytics).


💡 Inspiration

Most daily puzzle games—from Wordle to Connections—are solitary experiences wrapped in a social sharing layer. You solve them in isolation in your morning browser tab, and only interact with other people afterward by pasting emoji grids into group chats.

Reddit, on the other hand, is the world's greatest asynchronous watercooler. When we saw the Game of the Day Hackathon, we asked ourselves:

What if the community wasn't just where you bragged about your score, but the literal engine powering the puzzle itself?

We combined the tactical thrill of an espionage thriller—redacting classified government dossiers—with social deduction and collective intelligence. In Subtext, every clue you reveal influences a live heat-map for every other player in the subreddit, creating an asynchronous psychological game of crowd wisdom vs. contrarian intuition.


🔎 What It Does (The 60-Second Loop)

Every midnight UTC, an automated cron job posts a new heavily redacted intelligence dossier directly into the subreddit feed.

  1. The Classified Dossier: Players are presented with an intriguing passage covering cinema, history, internet lore, or science with ~12 key semantic words blacked out by thick redaction marker bars.
  2. The Reveal Budget: Players have a strict 60-second timer and 5 Ink Removers (tokens). Clicking any redacted bar unmasks that specific word—or players can attempt to guess the secret subject at any moment.
  3. The Live Subreddit Heat-Map: Each redacted bar pulses with a dynamic amber border reflecting how many fellow Redditors opened that exact clue today.
  4. The Maverick Mechanic: Players are rewarded for independent deduction. If you solve the dossier while avoiding the subreddit's crowd-favorite clues, you earn a substantial Maverick Bonus.
  5. The Viral Comment Loop: Upon solving, a tactical Result Card displays your score, streak, and a spoiler-free strategy grid (⬛🟨⬛⬛🟨). With a single click, players can post their spoiler-free proof directly into the Reddit post's comment thread!

🧮 Mathematical Scoring & Heat-Map Model

To reward deductive speed, economy of hints, and contrarian thinking, Subtext calculates player scores using a multi-factor formula:

1. Base Score

A player begins with a maximum score of $1000$ points, penalized by $120$ points for each clue revealed $k$, bounded by a guaranteed floor of $100$ points:

$$S_{\text{base}} = \max\left(100,\, 1000 - 120 \cdot k\right) \quad \text{where } k \in {0, 1, \dots, 5}$$

2. The Maverick Contrarian Bonus

Let $\mathcal{R} \subseteq {1, \dots, N}$ denote the set of clue indices unlocked by the player, and let $\mathcal{T}_3$ represent the set of the top-3 most frequently unmasked clues across the entire subreddit on that day (retrieved dynamically from Devvit Redis).

The Maverick Bonus $B_{\text{maverick}}$ is awarded as:

$$B_{\text{maverick}} = \begin{cases} 300, & \text{if } |\mathcal{R}| = 0 \quad \text{(True Maverick: zero reveals)} \ 150, & \text{if } |\mathcal{R}| \le 2 \text{ and } \mathcal{R} \cap \mathcal{T}_3 = \emptyset \quad \text{(Crowd-Defier)} \ 0, & \text{otherwise} \end{cases}$$

3. Total Score

The final submitted score recorded on the daily subreddit leaderboard is:

$$S_{\text{total}} = S_{\text{base}} + B_{\text{maverick}}$$

This mathematical model creates a compelling risk-reward tension: Do you reveal the crowd's most popular clue to secure a safe solve, or do you forge your own path to claim the 300-point Maverick bonus?


🛠️ How We Built It

Subtext is engineered as a zero-friction Devvit Web application:

  • Frontend Experience: Built with React 18, TypeScript, and Tailwind CSS. We crafted an editorial NYT/espionage visual identity—warm vintage parchment (#FAF8F5), deep carbon ink (#141413), and warm amber accents.
  • Procedural Web Audio API: Rather than bundling heavy MP3 assets, all sound effects (mechanical typewriter clatter on clue unmasking, wrong-guess thuds, and triumphant victory chimes) are synthesized procedurally in real time using the browser's native AudioContext oscillators.
  • Serverless Backend: Powered by a lightweight Hono API running inside Devvit Web's Node.js runtime.
  • Real-Time Aggregation with Devvit Redis:
    • Atomic clue tracking: redis.hIncrBy(heatmap:YYYY-MM-DD, tokenIndex, 1)
    • Streak & solve counts: redis.incrBy(streak:userId, 1) and redis.incrBy(solves:YYYY-MM-DD, 1)
    • Daily Subreddit Leaderboard: redis.zAdd(leaderboard:YYYY-MM-DD, { member: username, score })
  • Automated Scheduling: Configured via devvit.json with a daily cron trigger (0 0 * * *) that creates the daily interactive post automatically at midnight UTC.
  • Moderator Menu Action: Registered a custom subreddit action ("Create Today's Subtext Post") allowing subreddit moderators to immediately seed and playtest games on demand.
  • Player Journey Telemetry: Fully instrumented with @devvit/analytics using telemetry.startJourney(), clue telemetry.interaction(), and telemetry.endJourney() on completion.

⚡ Challenges We Ran Into

  1. Perfect Viewport Ergonomics: Reddit post embeds have strict container boundaries. We wanted zero nested vertical scrollbars across desktop and mobile Reddit apps. Achieving an editorial layout with title, timer, redacted passage, token counter, and input form required obsessive CSS flexbox calibration and responsive clamp typography.
  2. Atomic Heat-Map Calculations at Scale: Calculating which clues represent the "top 3 crowd favorites" in real-time across hundreds of simultaneous players could cause race conditions. We leveraged Redis hash operations (hIncrBy and hGetAll) to guarantee sub-millisecond atomic state aggregation.
  3. Zero-Latency Sound Without Assets: Loading remote audio files inside sandboxed iframes can introduce latency and CORS blockers. We bypassed network audio entirely by writing custom Web Audio API procedural synthesis with triangular frequency ramps.
  4. Spoiler-Free Social Virality: Designing the comment card required striking the right balance: it needed to show your deduction strategy (which clues you unlocked and whether you achieved Maverick status) without leaking the confidential subject or ruining the daily mystery for others in the comment section.

🏆 Accomplishments That We're Proud Of

  • True Community-Driven Gameplay: Unlike standard word games, Subtext feels alive—seeing the heat-map borders brighten as the subreddit wakes up and plays alongside you is deeply satisfying.
  • 14 Calibrated Daily Dossiers: We authored and balanced 14 full-length dossiers spanning history, cinema, science, and pop culture, complete with normalized answer aliases (e.g., handling spelling variants, prefixes, and common abbreviations).
  • Native Reddit Comment Loop: Players can submit their spoiler-free emoji grids directly to the post thread with one click, turning the post's comment section into an active daily watercooler.

📚 What We Learned

  • How to harness the full power of Devvit Web, bridging modern React client architecture with server-side Devvit Redis and Reddit API primitives.
  • How telemetry instrumentation via @devvit/analytics Journeys provides actionable insight into puzzle difficulty curves and player drop-off rates.
  • Designing game loops specifically for Reddit: when game mechanics reflect the collective behavior of a subreddit, engagement multiplies organically.

🚀 What's Next for Subtext

  • Community-Curated Dossiers: Enabling subreddits to submit and upvote their own thematic dossiers (e.g., r/movies submitting film plots, r/space submitting astronomical anomalies).
  • Weekend Mega-Dossiers: Multi-page intelligence files with branching redactions and community co-op milestones.
  • Subreddit vs. Subreddit Tournaments: Daily match-ups comparing deduction speeds and Maverick ratios between rival communities!

Built With

Share this project:

Updates

Submission history