Inspiration

Our game was inspired by "What Beats Rock?", a single-player game where players type any object to see if it logically beats the previous one, with AI-generated reasoning determining the outcome. While we credit "What Beats Rock?" for the core idea, our game expands on it by introducing a multiplayer experience where players compete in a turn-based elimination format. Instead of simply testing moves, players take turns trying to one-up the last move, and an AI judge determines whether their choice is valid. If a player submits an invalid move, they are eliminated, and the game continues until only one player remains. Additionally, we have implemented private lobbies and custom game settings, making it a competitive and interactive experience beyond the original concept.

What it does

Start with a Lobby One player creates a game and gets a unique lobby code. Other players join the lobby using that code. Turn-Based Gameplay The first player starts with "Rock" (just like normal Rock, Paper, Scissors). The next player must come up with something that "beats" Rock—for example, they could say "Jackhammer", because a jackhammer can break a rock. The next player then has to beat "Jackhammer"—maybe they say "Rust", because rust can wear down metal. This continues with each player trying to one-up the last move. How Do We Decide Who Wins a Round? Instead of manually deciding, the game asks an AI (ChatGPT) to judge. The AI gets a prompt like: "Does Rust beat Jackhammer? Be a fair judge and explain why." If the AI agrees, the move is accepted, and the next player takes their turn. If the AI disagrees (e.g., "Rust does NOT beat Jackhammer"), the player is eliminated from the game. Winning the Game If a player makes a move that doesn’t logically beat the previous one, they are eliminated. Players keep taking turns until only one player remains—they are declared the winner!

How we built it

  • Frontend
  • React
  • React Router
  • Tailwind

Backend

  • Javascript
  • Node.js
  • Express
  • Socket.io
  • OpenAI API

Challenges we ran into

Sleep Sleep Web Sockets Sleep

Accomplishments that we're proud of

UI looks clean The game is fun It's our first hackathon

What we learned

Communication Teamwork UI/UX Technical Skills (Web Sockets)

What's next for Rock Paper Anything

Deploying it and adding new game mode/features

Built With

Share this project:

Updates