Am I The Asshole? Guessing Game

A web-based guessing game built with React and Hono where users try to guess what percentage of Reddit users thought the poster was the asshole in posts from the r/AmITheAsshole subreddit.

Game Description

In this game, players are presented with a post from the "Am I The Asshole?" subreddit, where people share situations and ask if they were in the wrong. Players use a slider to guess what percentage of Reddit users voted that the original poster was the asshole. After submitting their guess, they see how close they were to the actual percentage.

Features

  • Beautiful, Reddit-inspired UI
  • Interactive slider for making guesses
  • Feedback on how close your guess was to the actual percentage
  • Responsive design that works on mobile and desktop

Technical Structure

  • Frontend: React with TypeScript, modern CSS
  • Backend: Hono (lightweight web framework)
  • Data: Currently uses static data, with plans to connect to SQL later

Project Structure

  • /backend/index.ts - The main server entry point
  • /backend/data/posts.ts - Static AITA post data
  • /frontend/components/AITAGame.tsx - The main game component
  • /frontend/components/App.tsx - The root React component
  • /frontend/style.css - Styles for the application

Future Enhancements

  • Connect to a SQL database for storing and retrieving posts
  • Add multiple posts with the ability to cycle through them
  • Add user accounts to track scores
  • Add social sharing features