public void Add(Player player) { players.Add(player.ClientProxy, player); if (isFull()) { Start(); } }
internal void Add(Player player) { _players.Add(player.GuessService, player); if (isFull()) { Start(); } //throw new NotImplementedException(); }
public static GuessGame JoinGame(Player player) { if (gameInstance == null) { gameInstance = new GuessGame(); } if (gameInstance.isFull()) { gameInstance = new GuessGame(); } gameInstance.Add(player); return gameInstance; }
public static Game JoinGame(Player player) { if (unstartedGame == null) { unstartedGame = new Game(); } if (unstartedGame.isFull()) { unstartedGame = new Game(); } unstartedGame.Add(player); return unstartedGame; }
public void AddName(string name) { Player player = new Player(name, _client); Game game = GameManager.JoinGame(player); currentGame = game; }
public void AddName(string name) { Player _currentPlayer = new Player(name, _client); _currentGuessGame = GameManager.JoinGame(_currentPlayer); }