Inspiration
We wanted to create a daily game that turns a simple human ability—remembering visual patterns—into a fun,competitive experience. Many daily games challenge players with words,numbers, or trivia.We wanted to explore something different: a short memory challenge that anyone can understand in seconds but that becomes harder to master with each attempt. That idea became AFTERLIGHT:The Vanishing Pattern.The name represents the brief moment when a visual pattern disappears,leaving the player to rely entirely on memory.
What it does
AFTERLIGHT is a daily visual memory game built as a Reddit interactive post. Every day,players receive a shared challenge:
- A 4×4 grid displays six highlighted cells.
- Players have five seconds to memorize the pattern.
- The highlighted cells disappear.
- Players have twenty seconds to select the six cells they remember.
- The game calculates their accuracy and reveals their performance. Players receive a result showing correct selections, incorrect selections, missed cells, and overall accuracy. AFTERLIGHT includes two modes:
- Daily Challenge:A shared daily pattern with one recorded attempt per player per day.
- Random Practice: A separate practice mode that lets players improve without affecting their daily completion or streak. The game also tracks daily streaks and lets players share a visual summary of their results.
How we built it
We built AFTERLIGHT using Devvit Web, Reddit's platform for interactive applications and posts. The technology stack includes:
- React and TypeScript for the game interface and application logic.
- Vite for the development and production build process.
- CSS for the visual experience and responsive game layout.
- Devvit Web for integrating the game into Reddit interactive posts.
- Devvit Redis for persistent daily results and streak-related data. We separated the game logic into shared code so that pattern generation and scoring remain consistent. Daily patterns are generated deterministically from the date, ensuring players receive the same daily challenge rather than unrelated patterns. On the server, we validate submitted selections and use Redis to prevent duplicate daily submissions for the same player and date. We also added automated quality checks for TypeScript,linting,production builds,and unit tests.
Challenges we ran into
One of our biggest challenges was building and testing a complete Devvit Web application in an Android-based development environment using Termux. We encountered compatibility issues with development tools and had to adapt the build workflow to work reliably on the available hardware and operating system. Another challenge was ensuring that the daily challenge remained consistent across players while preventing duplicate submissions.We addressed this with deterministic pattern generation, server-side validation, and Redis-backed persistence. We also had to distinguish daily progress from practice sessions so that players could experiment without accidentally affecting their daily results or streaks. Finally, getting the application uploaded, installed, and running inside an actual Reddit interactive post required testing beyond simply running the game locally.
Accomplishments that we're proud of
- Built a playable daily memory game inside Reddit using Devvit Web.
- Implemented a 4×4 visual grid with six daily target cells.
- Created a five-second memorization phase and twenty-second recall phase.
- Implemented deterministic daily challenges.
- Added server-side validation and persistent daily results.
- Implemented daily completion tracking and streaks.
- Built a separate practice mode.
- Added scoring, performance feedback, and shareable results.
- Passed TypeScript checks,ESLint, production builds,and all six unit tests.
- Successfully uploaded the app and tested it inside a public Reddit community. Most importantly, we transformed a simple concept into a working interactive experience that people can play directly on Reddit.
What we learned
We learned that building a daily game involves more than designing an enjoyable mechanic. Consistency, persistence, fairness, timing, and clear feedback are just as important as the game itself. We gained practical experience with Devvit Web, Reddit interactive posts,React, TypeScript,Redis,server-side validation,and automated testing. We also learned to work through platform-specific development challenges and build a complete application in a constrained mobile development environment.
What's next for AFTERLIGHT: The Vanishing Pattern
We want to make AFTERLIGHT an even more engaging daily experience. Our next goals include:
- Improving the visual presentation with more refined animations and transitions.
- Adding more pattern variations and difficulty levels.
- Introducing richer personal statistics and progress history.
- Exploring community leaderboards and friendly competition.
- Improving onboarding so new players understand the challenge immediately.
- Expanding the daily experience while keeping the core game quick and accessible. Our vision is simple: One day. One pattern.Six lights to remember. Memory fades.Patterns remain.
Built With
- api
- css
- devvit
- game-development
- html5
- javascript
- memory-game
- react
- redis
- typescript
- vite
- web-development