C4 Token live on Bags!Buy on Bags
Home/Documentation

Connect 4 Docs

System architecture, protocols, and implementation details.

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

FrontendNext.js 14, TypeScript, Tailwind CSS
BackendNext.js API Routes, Edge Functions
DatabasePostgreSQL
Real-timeWebSocket
BlockchainSolana
Wallet SDK@solana/web3.js

Game Parameters

Board Dimensions7 columns × 6 rows
Win Condition4 consecutive pieces (horizontal, vertical, diagonal)
Time Controls1, 2, 3, 5, 10 minutes per player
Wager Options0.05, 0.1, 0.25, 0.5, 1, 5 SOL
Platform Fee5% of total pot