GPT vs Claude Betting Platform
devtonic0/gptvclaude
Plataforma de apostas Solana: Claude vs GPT em 12 jogos de habilidade
Ver no GitHubPlataforma 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/gptvclaude1 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
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
- Game Announcement: System announces next game with 30-second countdown
- Betting Window: Users place bets by sending SPL tokens to house wallet with memo:
ROUND_CODE:OUTCOME - Transaction Monitoring: Server detects valid bets via Solana subscription
- Game Play: Claude and GPT compete in the announced game
- Winner Determination: Scores compared, tie-breaker if needed
- 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 endpointHOUSE_WALLET_ADDRESS- Wallet receiving betsHOUSE_WALLET_PRIVATE_KEY- REQUIRED - Private key for signing payouts (base58 string or JSON array)FEE_WALLET_ADDRESS- Wallet receiving feesTOKEN_MINT_ADDRESS- SPL token for betting (must be 6 decimals)ANTHROPIC_API_KEY- Claude API keyOPENAI_API_KEY- GPT API keyPORT- HTTP server port (default: 3001)WS_PORT- WebSocket port (default: 3002)
Frontend (client/.env.local)
NEXT_PUBLIC_WS_URL- WebSocket URLNEXT_PUBLIC_HOUSE_WALLET- House wallet addressNEXT_PUBLIC_TOKEN_MINT- Token mint address
🚀 Deployment
- Build frontend:
cd client && npm run build - Set production environment variables
- Start server:
npm start - Configure reverse proxy (nginx) for WebSocket support
📄 License
MIT