Distributed Mancala

   page       attach   
sommario

This report presents the design and implementation of a distributed Mancala game system built using Spring Boot and WebSockets. The system enables two players to play the classic Mancala board game over a network in real-time. The primary focus is on handling distributed challenges such as player disconnection, session management, inactivity detection, and state consistency across multiple clients. The implementation demonstrates core distributed systems concepts including asynchronous communication, fault tolerance, and timeout mechanisms. The game is implemented with a clean separation between domain logic (game rules), service layer (business logic), and presentation layer (WebSocket controllers). Key features include automatic room creation, player joining, real-time game state synchronization, graceful disconnection handling with reconnection support, and inactivitybased player forfeit mechanisms.

prodotti