Skip to content

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. (Fullstack version)

License

Notifications You must be signed in to change notification settings

burneikis/Prompt-Fighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prompt Fighter (FULL VERSION)

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.

Game Overview

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.

Fullstack Version

  • 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)

How to Play

  1. Character Selection: Each player chooses an emoji to represent their fighter
  2. Battle Phase: Players have 1 minute to craft a prompt that can:
    • Attack the opponent's emoji character
  3. AI Evaluation: Both prompts are sent to an LLM which calculates damage dealt
  4. Victory Condition: First player to reduce opponent's health from 100 to 0 wins

Features

  • 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

Development

Start both frontend and backend servers:

npm run dev

This will start:

About

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. (Fullstack version)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published