diff --git a/Server/websocket_server.py b/Server/websocket_server.py index 398334b..32394f1 100644 --- a/Server/websocket_server.py +++ b/Server/websocket_server.py @@ -93,7 +93,7 @@ async def handler(self, websocket): "players": [player.as_dict() for player in self._players.values()], })) - if all([player.ready for player in self._players.values()]) and len(self._connections) == 2: + if all([player.ready for player in self._players.values()]) and len(self._connections) == 2 and len(self._players) >= 2: # TODO add error messages for why game cant start with not enough or too many ready players # all players are ready, start the game rulebase = RuleBase()