Play Chess. Build Streaks. Own Progress.
BaseGambit is a mobile-first chess mini-app built for the Base blockchain ecosystem. Play chess, complete daily tasks, earn XP, and simulate onchain actions — all in a single browser file with no setup required.
- Full Chess Engine — all legal moves, castling, en passant, pawn promotion, check & checkmate
- AI Opponent — Easy (random), Medium (capture-priority), Hard (minimax + alpha-beta)
- Local Multiplayer — pass & play on the same device
- Wallet Connect — simulated Coinbase Wallet / MetaMask / WalletConnect (Base-ready architecture)
- Onchain Actions — simulated tx flow: Save Win, Claim Reward, Mint Badge, Register Username
- Daily Tasks — check-in, play a match, win, capture pieces, make moves
- XP & Streaks — 14 ranks from Pawn I to King, daily streak tracking
- Leaderboard — mock leaderboard with live XP integration
- Mobile-first — works perfectly on phones and desktop
BaseGambit is designed for the Base ecosystem with wallet architecture ready for:
- Base Mainnet (Chain ID:
8453) - Base Sepolia Testnet (Chain ID:
84532)
Real wallet integration can be enabled by connecting window.ethereum.request() in the Wallet Logic section of the source.
No installation needed. Just open the file in any browser:
# Clone the repo
git clone https://github.com/Harkiem/basegambit.git
# Open in browser
open index.htmlOr simply visit the live link above.
| Layer | Tech |
|---|---|
| Frontend | Vanilla HTML, CSS, JavaScript |
| Storage | localStorage |
| Chain | Base (Mainnet + Sepolia) |
| Wallet | Coinbase Wallet / MetaMask / WalletConnect |
| Hosting | GitHub Pages |
- Real wallet integration (Base Mainnet)
- Onchain win recording (smart contract)
- NFT chess piece skins (ERC-1155)
- Stake matches (low gas wagering)
- Challenge friends onchain
- Seasonal ranked ladder
- Clan battles
- Puzzle mode
basegambit/
├── index.html # Full app — chess engine, UI, wallet logic, AI
└── README.md # This file
MIT — free to use, modify, and build on.
Built with ♟ for the Base ecosystem