A strategic element-based battle game built with React and TypeScript. Players engage in rock-paper-scissors style combat using three elements (Earth, Water, Fire) with mana wagering mechanics and elemental upgrades
npm install
npm start # Start development serverThe application will run on http://localhost:3000
npm run fix # Fix linting
npm run quality # Run test suite
npm run build # Create production build
npm run release # Deploy to GitHub Pagesgraph TB
subgraph "๐ฎ Client Layer"
Player[๐ค Player]
GameUI[๐ฏ Game Interface<br/>Craft โข Battle โข Trade]
end
subgraph "โก Off-Chain Layer (Gasless)"
API[๐ก Game API<br/>HTTP/WebSocket]
Validators[๐ Validator Network<br/>Symbiotic Consensus]
end
subgraph "โ๏ธ On-Chain Layer (Settlement)"
Contracts[๐ Smart Contracts<br/>GameManager + MANA Token]
end
Player -->|"Play Game"| GameUI
GameUI -.->|"๐ NO GAS FEES"| API
API -->|"Validate & Batch"| Validators
Validators -->|"Consensus + Proof"| Contracts
Contracts -.->|"State Updates"| Validators
Validators -.->|"Real-time"| API
API -.->|"Live Updates"| GameUI
style Player fill:#ff9999
style GameUI fill:#ffcc99
style API fill:#99ccff
style Validators fill:#99ff99
style Contracts fill:#cc99ff
See more elemgame relay symbiotic