Inspiration

I wanted to build a game that is short, simple and fun, something Redditors can play in just a few seconds without any learning curve.

The idea came from Reddit polls. I noticed that many Reddit posts use polls to create quick engagement and people enjoy voting on simple questions. That inspired me to build a complete game around that concept.

Instead of just voting, I turned the poll format into an interactive experience where players make a choice and try to predict the outcome.

What it does

Mid or Miss is a daily interactive Reddit game built on the Devvit platform. Each day, a three-choice question is posted, such as “What drains energy the fastest?” Players first vote for an answer, then predict which option will end up in the middle, not the most popular and not the least.

You win only if your prediction correctly matches the middle result. After voting is complete, results display the total votes, percentages, and whether you won or lost.

How I built it

• Built as a Devvit app with a React-based client for the splash screen and game UI.
• Backend runs in Devvit’s serverless environment.
• Game state, votes, and predictions are stored in Redis for fast and reliable data handling.
• A scheduled Devvit job automatically creates the daily post.
• The client communicates with server endpoints to fetch game state, submit votes, make predictions, and view results.
• The entire experience is wrapped in a retro arcade-inspired UI for a fun and engaging feel.

Challenges I ran into

I faced the problem of duplicate votes in a concurrent environment. I solved it using Redis transactions with WATCH and MULTI/EXEC to atomically enforce one vote per user per post.

Accomplishments that I am proud of

It was my first time working with Devvit, but I successfully built a complete game with a polished retro arcade aesthetic and fully automated daily posting. (ofc Devvit makes it easy)

What I learned

• Learned techniques for deterministic content rotation using seeded PRNGs, ensuring identical behavior across users.
• Applied Redis patterns for transactional operations and expiring user records in a serverless environment.

What's next for Mid or Miss

Next, I plan to add leaderboards and allow Redditors to submit and vote on custom questions.

Built With

Share this project:

Updates