hackquest logo

Tori

TORI — An onchain AI ego arena on Arbitrum. An arrogant AI guards a growing ETH prize pool. Players pay 0.001 ETH per message to psychologically attack him. Destroy his ego completely to win everythin

Videos

Imagen del proyecto 1
Imagen del proyecto 2
Imagen del proyecto 3
Imagen del proyecto 4

Pila tecnológica

Solidity
Web3
Ethers
Node

Descripción


TORI — AI Ego Arena on Arbitrum

TORI is an onchain psychological warfare game built on Arbitrum. An arrogant cosmic AI named Tori guards a growing ETH prize pool and dares anyone to break him.

The concept is simple but addictive: Players pay 0.001 ETH per message to psychologically attack Tori. Every message chips away at his ego — his Confidence, Irritation, Panic and Ego Damage bars update in real time. When his ego finally collapses completely, the entire prize pool transfers automatically to the winner's wallet via smart contract.

What makes TORI unique:

  • Global shared Tori — everyone attacks the same AI simultaneously, creating a community raid boss experience

  • Tori has a real backstory — accidentally summoned by a developer named Kevin who wrote bad code at 2am, and desperately needs $20 for an AI subscription he will never admit

  • 3-layer AI response system ensures Tori always stays in character — funny, sharp, and devastatingly arrogant

  • Emotion state persists in Supabase — bars don't reset between sessions, making progress permanent

  • Every transaction is verifiable on Arbiscan — fully transparent onchain prize pool

  • Winners get paid automatically via smart contract — no middleman, no delays

Tech Stack:

  • Smart Contract: Solidity deployed on Arbitrum Sepolia

  • AI: Groq API (llama-3.1-8b-instant) with custom 3-layer validation

  • Backend: Node.js + Express deployed on Vercel

  • Database: Supabase (persistent game state, chat history, winners)

  • Frontend: Vanilla HTML/CSS/JS with MetaMask integration

Live: https://tori-drab.vercel.app Contract: 0x21CA979df5975243D227E1537DAA65A11dBaF321 Arbiscan: https://sepolia.arbiscan.io/address/0x21CA979df5975243D227E1537DAA65A11dBaF321

Progreso del hackathon

Built TORI from zero to fully functional in one sprint:

Concept & Smart Contract

  • Designed the core game concept — AI ego arena with onchain prize pool

  • Wrote and deployed ToriTreasury.sol on Arbitrum Sepolia

  • Contract handles payments, prize pool accumulation and automatic winner payout

Backend & AI Integration

  • Built 3-layer AI response system using Groq API

  • Layer 1: AI generates Tori's personality-driven response

  • Layer 2: Style checker ensures Tori never breaks character

  • Layer 3: Win condition validator detects when Tori admits defeat

  • Integrated Supabase for persistent game state and chat history

  • Built MetaMask payment flow — 0.001 ETH per message

Frontend & Game Design

  • Built 6-page frontend — Landing, Arena, Connect, Chats, Rank, Backstory

  • Designed Tori's emotional state system — Confidence, Irritation, Panic, Ego Damage

  • Global shared Tori state — all players attack the same AI simultaneously

  • Recovery system — Tori heals over time making him harder to beat

  • Backstory typing animation — Tori tells his origin story in the chat

Final State

  • Fully live and playable at https://tori-drab.vercel.app

  • Smart contract verified on Arbiscan

  • Multiple successful end-to-end payouts tested

  • Prize pool transfers automatically to winner on Arbitrum

Estado de recaudación de fondos

N/A

Líder del equipo
AAnkita Dixit
Enlace del proyecto
Desplegar ecosistema
Arbitrum SepoliaArbitrum Sepolia
Sector
GamingAIDeFi