Overview
Connect 4 is a real-time multiplayer game application deployed on the Solana blockchain. The system consists of a web client, WebSocket server for real-time communication, PostgreSQL database for state persistence, and Solana integration for escrow and settlement.
Technical Stack
| Frontend | Next.js 14, TypeScript, Tailwind CSS |
| Backend | Next.js API Routes, Edge Functions |
| Database | PostgreSQL |
| Real-time | WebSocket |
| Blockchain | Solana |
| Wallet SDK | @solana/web3.js |
Game Parameters
| Board Dimensions | 7 columns × 6 rows |
| Win Condition | 4 consecutive pieces (horizontal, vertical, diagonal) |
| Time Controls | 1, 2, 3, 5, 10 minutes per player |
| Wager Options | 0.05, 0.1, 0.25, 0.5, 1, 5 SOL |
| Platform Fee | 5% of total pot |