Inspiration
Arabic builds meaning from roots. A three-consonant root (C_1C_2C_3) is reshaped by vowel patterns and prefixes into a whole family of words: (maC^1C^2\bar{a}C^3a) gives maktab, "a place of writing." Once you notice that, the language suddenly looks like a puzzle you can solve. We wanted to turn that small "aha" moment into a bite-sized daily game.
The Reddit Game of the Day Hackathon gave us the missing piece: a daily loop with a social payoff. Solve the family, then post your derivation into the thread so other people can compare answers and argue about the words.
What it does
Every day at 00:00 UTC, every player gets the same root, chosen deterministically from a dataset of 72 roots. The start screen shows the vocalized root, its dotted transliteration, and one line of meaning, then you're in.
Each derived word has an English clue and a slot. Type the Arabic word (harakat optional), its transliteration (macrons optional), or the English gloss. A wrong answer shakes the slot without revealing anything; a correct answer fills the slot with the Arabic word and reveals one grammatical hint, such as the (mafʿūl) pattern behind a passive participle. There are no instruction walls, the clue and the bottom strip tell you exactly what to do.
The single end card shows the completed family, your day streak, and an editable derivation ready to post as a comment on the game post. One puzzle, one clear result, one reason to come back tomorrow.
How we built it
Root Rush is a Devvit Web app. The client is React 19 + TypeScript + Vite + Tailwind CSS 4, served inside Reddit's webview. A Hono serverless backend handles two endpoints: one records streaks in Devvit Redis, and the other posts the player's derivation with reddit.submitComment using the current post from context.postId.
The daily puzzle comes from a JSON dataset of 72 roots and 226 family words. Each word carries Arabic with full diacritics, a scholarly transliteration, an English gloss, a clue, and a grammatical hint. The answer checker has two layers: a forgiving form that ignores diacritics and punctuation, and a precise form that honors marks when the player deliberately typed them. That lets "kitab", "kitāb", and "كِتَاب" all work, while still making vowel contrasts part of the lesson.
Visually we used only three colors, ink, parchment, and terracotta, plus Amiri for Arabic and Space Grotesk for Latin text. Arabic is always dir="rtl" and large enough for harakat to stay legible; buttons and inputs are at least 44px tall, with visible focus rings and a compact layout for five-word days so nothing scrolls on a phone.
Challenges we ran into
The first playtest showed a completely unstyled "Start" button on default serif text. The cause was two bugs: an invalid CSS import instead of @import, and module script paths that pointed outside the Vite entry roots. Fixing both brought the design back.
Fitting five derived words into a phone viewport without scrolling took a dedicated compact height breakpoint and a centered content column for desktop. Building 72 linguistically accurate roots was its own challenge: we generated the dataset with checks for duplicate transliterations, unique words per family, complete hint coverage, and answer collisions, then verified all 23 automated tests.
We also learned that Devvit's expanded-mode request needs a trusted event, that background tabs throttle requestAnimationFrame (so focus auto-advance uses a post-commit timeout), and that the standalone browser harness has no game server, so streak posting falls back to local state there.
Accomplishments that we're proud of
- 72 daily roots with 226 fully vowelized family words and a grammatical hint for every single one.
- A real Reddit-native share loop: the end card posts a comment on the game post through the Devvit server API.
- A tight visual identity with no stock components, no Snoo, and no Reddit clichés in gameplay.
- Fast, focused play: contextual clues, auto-advance between slots, progress feedback, and one end screen.
- All content, normalization, date-selection, and streak tests passing; the app is running privately in playtest.
What we learned
Devvit Web's client/server boundary is strict, server code cannot leak into the webview, which pushed the comment and streak logic into clean Hono endpoints. We learned how Reddit's trusted-event requirement shapes navigation, how context.postId connects a webview to its post, and how Redis-backed streaks stay idempotent across replays. On the design side, we learned how much Arabic typography matters: root text needs real space and size for diacritics, and restraint in color and layout makes the puzzle itself the entertainment.
What's next
After the hackathon, we plan to submit the app for Reddit's normal review, add community-facing features like flair for solved roots and a monthly leaderboard, expand the dataset further, and tune difficulty with playtest telemetry. For now the game remains private and playtestable, as the hackathon rules require.