Пример #1
0
        public TPlayers()
        {
            _nPlayers = DefaultNumPlayers;
            _Items    = new TPlayer[_nPlayers];

            for (int i = 0; i < _nPlayers; i++)
            {
                _Items[i] = new TPlayer("Player " + (i + 1).ToString());
            }
        }
Пример #2
0
        public TPlayers(int n)
        {
            _nPlayers = n;
            _Items = new TPlayer[_nPlayers];  

            for (int i = 0; i < _nPlayers; i++)
                _Items[i] = new TPlayer("Player " + (i + 1).ToString());
        }