Beispiel #1
0
        public bool Add(String playerName)
        {
            var newPlayer = PlayerFactory.CreatePlayer(playerName);

            _players.Add(newPlayer);
            if (_currentPlayer == null)
            {
                _currentPlayer = newPlayer;
            }
            _textDisplay.DisplayAddedPlayer(newPlayer);
            _textDisplay.DisplayPlayerNumber(_players);


            return(true);
        }