abstract
This report details the architectural design, protocol specifications, and validation framework of a highly available, networked multiplayer implementation of the classic strategy matrix board game Connect Four. Developed using Python, FastAPI, WebSockets, and PyQt6, the system addresses core concerns of modern distributed environments, specifically fault isolation, dynamic session state routing, and state machine replication. Adhering to the principles of the CAP Theorem, the architecture favors an AP (Availability and Partition Tolerance) model to preserve match state permanence across abrupt software failures. By implementing a strict master-slave warm standby synchronization model governed by real-time heartbeat monitors, the system demonstrates an automated, transparent 10-second failover recovery routine. This design ensures seamless user connection migration and prevents data corruption or game session resets when an active cluster coordinator unexpectedly terminates.
outcomes