Welcome to K-Raft Builder! Five LEGO minifigure servers work together to agree on a shared tower of LEGO bricks—even when characters crash or walls split the room.
- 👑 Leader Election: Every Follower has a countdown ring. If it runs out without hearing from a Leader, they put on a megaphone hat (Candidate) and ask others for votes. First to get a majority (3 of 5) wins the Golden Crown!
- 🧱 Log Replication: Click Send Client Brick to hand a new brick to the Leader. The Leader sends
AppendEntries packets to Followers. Once a majority stores it, the brick snaps in solidly (Committed)!
- 💥 Crash & Recovery: Click any character (or Crash Leader) to knock them over. The remaining majority elects a new Leader. Click again to revive them and watch them catch up.
- 🚧 Network Partition: Drag a line across the baseplate (or click Build Wall) to split the cluster. Only the side with a majority (3+ nodes) can elect a leader and commit bricks!