rules.module
README.md
rules
lobbyKit's pure rules, with no engine calls: who is in the lobby and on which team, joining, the polite refusal when a team is already bigger (maxDifference), auto (the smaller team), rebalancing with the fewest moves (newest arrivals first), the ready check and the words it shows, spectators who joined mid-match and join the smaller team at the next round, going back to the lobby after a match, spawn slots, and which MatchFlow entry a player's points count for. The Lobby component runs exactly this on the machine in charge; the test suite covers every rule.