aita
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v553View latest version
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.
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.
- 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
- Frontend: React with TypeScript, modern CSS
- Backend: Hono (lightweight web framework)
- Data: Currently uses static data, with plans to connect to SQL later
/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
- 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