public static GuessGame JoinGame(Player player) { if (gameInstance == null) { gameInstance = new GuessGame(); } if (gameInstance.isFull()) { gameInstance = new GuessGame(); } gameInstance.Add(player); return gameInstance; }
public void AddName(string name) { Player _currentPlayer = new Player(name, _client); _currentGuessGame = GameManager.JoinGame(_currentPlayer); }