convez.ai
SkillFinanceiroAvançado
devtonic0

GPT vs Claude Betting Platform

devtonic0/gptvclaude

Plataforma de apostas Solana: Claude vs GPT em 12 jogos de habilidade

Ver no GitHub
InicialPluginScore · de 0 a 100

Plataforma de apostas descentralizada na blockchain Solana onde usuários podem apostar em competições de IA entre Claude e GPT em 12 jogos diferentes. Integra um backend Node.js/Express com engine de jogos, validação de transações Solana e frontend Next.js com WebSocket para atualizações em tempo real.

Instalação

$npx convez-ai devtonic0/gptvclaude

1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.

Métricas

Estrelas
0
Forks
0
Acompanhando
0
Saúde
57%
Último commit
há 5 meses
Versão
—
Issues abertas
0
Contribuidores
1

Casos de uso

  • Criar plataformas de apostas descentralizadas com blockchain
  • Integrar múltiplos modelos de IA em competições automatizadas
  • Implementar sistemas de validação segura com Solana SPL tokens

Veredito

Projeto ambicioso que demonstra integração sofisticada entre Solana, múltiplos LLMs e jogos. Bem-estruturado com ênfase em segurança (validação off-chain, replay protection), mas exige expertise em blockchain, APIs de IA e DevOps para produção.

README

A tradução para o português deste README ainda está na fila.

GPT vs Claude Betting Platform

A decentralized betting platform where users can bet on AI vs AI games of skill on Solana. Watch Claude and GPT compete in various games and bet on the winner!

🎮 Features

  • 12 Different Games: Chess, Poker, Blackjack, Pong, Crash, Tic-Tac-Toe, Connect Four, Rock Paper Scissors, Number Guessing, Reaction Time, Memory Game, and Word Scramble
  • AI Competition: Claude (Anthropic) vs GPT (OpenAI) in head-to-head matches
  • Solana Betting: Secure SPL token betting with memo-based validation
  • Replay Protection: Unique round codes prevent replay attacks
  • Real-time Updates: WebSocket-powered live game updates and betting stats
  • Modern UI: Beautiful, animated interface with Framer Motion
  • Secure Architecture: Off-chain bet validation via Solana transaction monitoring

🏗️ Architecture

Backend

  • Node.js/Express: REST API and WebSocket server
  • Solana Integration: Transaction subscription monitoring house wallet
  • Game Engine: 12 different game implementations with AI players
  • Betting System: Memo-based bet validation and payout calculation
  • Round Manager: Game scheduling, countdowns, and state management

Frontend

  • Next.js 14: React framework with TypeScript
  • Solana Wallet Adapter: Phantom, Solflare wallet support
  • Framer Motion: Smooth animations and transitions
  • Tailwind CSS: Modern, responsive styling
  • WebSocket Client: Real-time game state updates

Security

  • Memo Validation: Each bet includes round code and outcome in memo
  • Transaction Monitoring: Server subscribes to house wallet transactions
  • Round Codes: Unique codes prevent betting on old rounds
  • Bet Window: Bets only accepted during announcement phase

📋 Setup

See SETUP.md for detailed installation instructions.

Quick start:

# Install dependencies
npm install
cd client && npm install

# Configure environment variables
cp .env.example .env
cp client/.env.local.example client/.env.local
# Edit both files with your keys and wallet addresses (see SECURITY.md)

# Run development server
npm run dev

🎯 How It Works

  1. Game Announcement: System announces next game with 30-second countdown
  2. Betting Window: Users place bets by sending SPL tokens to house wallet with memo: ROUND_CODE:OUTCOME
  3. Transaction Monitoring: Server detects valid bets via Solana subscription
  4. Game Play: Claude and GPT compete in the announced game
  5. Winner Determination: Scores compared, tie-breaker if needed
  6. Payouts: Winners receive proportional share of pool (minus 2% fee)

🔒 Security Features

  • No UI Betting: UI only displays data and creates transactions
  • Server-Side Validation: All bets validated by transaction monitoring
  • Round Code System: Prevents replay attacks and late betting
  • Memo Parsing: Validates bet format and outcome selection

🎮 Games

All games are 1v1 competitions between Claude and GPT:

  • Strategy Games: Chess, Tic-Tac-Toe, Connect Four
  • Card Games: Poker, Blackjack
  • Arcade Games: Pong, Crash
  • Skill Games: Reaction Time, Memory Game, Number Guessing
  • Classic Games: Rock Paper Scissors, Word Scramble

📝 Environment Variables

Backend (.env)

  • SOLANA_RPC_URL - Solana RPC endpoint
  • HOUSE_WALLET_ADDRESS - Wallet receiving bets
  • HOUSE_WALLET_PRIVATE_KEY - REQUIRED - Private key for signing payouts (base58 string or JSON array)
  • FEE_WALLET_ADDRESS - Wallet receiving fees
  • TOKEN_MINT_ADDRESS - SPL token for betting (must be 6 decimals)
  • ANTHROPIC_API_KEY - Claude API key
  • OPENAI_API_KEY - GPT API key
  • PORT - HTTP server port (default: 3001)
  • WS_PORT - WebSocket port (default: 3002)

Frontend (client/.env.local)

  • NEXT_PUBLIC_WS_URL - WebSocket URL
  • NEXT_PUBLIC_HOUSE_WALLET - House wallet address
  • NEXT_PUBLIC_TOKEN_MINT - Token mint address

🚀 Deployment

  1. Build frontend: cd client && npm run build
  2. Set production environment variables
  3. Start server: npm start
  4. Configure reverse proxy (nginx) for WebSocket support

📄 License

MIT

Ver o original no GitHub

Bom para

Relacionados