public Room(int max) { if (max < 1) { throw new Exception("max must be greater than 1"); } _id = Guid.NewGuid(); _users = new List <Guid>(); _max = max; _game = null; }
public void StartGame(String game, GameConfig config = null, IUserRepository userRepo = null) { _game = GameFactory.Create(game, _users, config, "", userRepo); }
public void StartGame(String game, GameConfig config = null) { _game = GameFactory.Create(game, _users, config); }