Inspiration

The inspiration for the "Guess the Subreddit" game comes from our love for Reddit. Reddit stands out from other social platforms due to its community-driven nature, where content is entirely user-generated and user-moderated. This creates a highly engaging and authentic experience. The idea behind the game is to leverage this community aspect of Reddit while adding an element of fun and engagement. By creating a game where users have to guess the subreddit of a random post, we wanted to celebrate the diversity of content on Reddit and introduce a playful way for users to connect with the platform’s unique culture.

What it does

"Guess the Subreddit" is a simple yet engaging game where users are presented with a random post pulled from a selection of popular subreddits. The game challenges users to guess which subreddit the post belongs to based on its content. Once the user submits their guess, they receive feedback on whether their guess was correct or not. It’s a fun and interactive way to explore the wide variety of topics Reddit covers while testing users' knowledge of the platform's many subreddits.

How we built it

I built the "Guess the Subreddit" game using Devvit, a platform that allows us to interact with Reddit’s API and create custom interactive experiences. The game was developed in a way that pulls random posts from a curated list of subreddits. The post’s title, body content, and media (if any) are displayed, and users are prompted to guess the subreddit from which the post originates. We used Devvit’s form system to collect user input and provide real-time feedback based on their guess. The backend leverages Reddit’s API to fetch the most recent posts, and we used TypeScript to write the logic, ensuring type safety and clean code.

Challenges we ran into

One of the main challenges I faced was migrating our knowledge of TypeScript into Devvit’s syntax. While TypeScript and Devvit share some similarities, they are not identical, and I had to adapt to the nuances of Devvit’s API. Specifically, understanding the correct way to define forms, handle user input, and manage state was a bit tricky at first. Additionally, since Devvit has its own set of conventions for interacting with Reddit, we had to spend some time learning how to properly fetch posts, handle API responses, and format them in a way that worked for our game.

Accomplishments that we're proud of

I am proud of how quickly I was able to bring the idea to life using Devvit, despite the initial challenges. I was able to integrate Reddit’s API seamlessly and create an interactive, user-friendly game that not only fetches posts but also provides immediate feedback based on the user’s guess. The game feels natural and intuitive, which is exactly what I aimed for. Additionally, I am happy with how the game fits into the overall Reddit ecosystem, celebrating its community-driven nature in a fun and interactive way.

What we learned

Through this project, I ended up actually using my knowledge of vanilia javascript which I learned years ago, through the typescript modules I had to write, moreover learning a new technology is something I am always open to. So, that just added on to my knowledge base, and well I learnt about a bunch of new subreddits!

What's next for Guess the Subreddit

I would honestly like to work on moderating the kind of posts being used in the game, I unfortunately, could not do that very well right now, but I would definetly aim to moderate the kind of posts which are displayed to the user during the game, and improve upon the UI to make it more engaging

Built With

Share this project:

Updates