this version of prompt-fighter, is a full-stack web app, with user accounts, multiple modes, and a database
A web game where two players battle by prompting against each other. Each player chooses an emoji and writes prompts to attack the opponent's emoji. An LLM evaluates the prompts and returns damage values.
Prompt Fighter is a competitive 1v1 web game where players battle using the power of language. Each player selects an emoji character and takes turns writing creative prompts that can either attack their opponent. An AI language model evaluates each prompt and determines damage values, creating an engaging blend of creativity and strategy.
- Multiple modes:
- Default (ELO ranked)
- Moderated (family-friendly (not implemented))
- Magic (wizard-themed (not implemented))
- Private (unranked, invite code / link)
- Database integration for user accounts, match history, and leaderboards
- User authentication with JWT
- User account management (secure, hashing, salting)
- Character Selection: Each player chooses an emoji to represent their fighter
- Battle Phase: Players have 1 minute to craft a prompt that can:
- Attack the opponent's emoji character
- AI Evaluation: Both prompts are sent to an LLM which calculates damage dealt
- Victory Condition: First player to reduce opponent's health from 100 to 0 wins
- Real-time Multiplayer: Two players can connect and battle simultaneously
- AI-Powered Combat: OpenAI's language models evaluate prompt creativity and effectiveness
- Minimalist Dark Theme: Clean, focused interface that highlights the gameplay
- Timer-Based Rounds: 60-second rounds keep the pace engaging
- Instant Results: See damage calculated in real-time
Start both frontend and backend servers:
npm run devThis will start:
- Frontend on http://localhost:3000
- Backend on http://localhost:3001