Exemple #1
0
        public void WriteBanner(List <Player> listOfPlayers)
        {
            _writer.Clear();
            _writer.Deliminter();
            _writer.Write(Colors.Blue, "Deck Of Cards");
            _writer.Write(Colors.Blue, "Players: ");
            var getPlayerNames = _showPlayers.GetPlayerNames(listOfPlayers); //// Display Player names on screen

            _writer.WriteList(Colors.Cyan, getPlayerNames);
            _writer.BlankLine();
            _writer.Deliminter();
        }
 public void PrintHand(List <Player> listOfPlayers)
 {
     foreach (var player in listOfPlayers)
     {
         _writer.BlankLine();
         _writer.WriteLine(Colors.None, player.Name);
         _writer.WriteLine(Colors.Cyan, "-----------");
         foreach (var card in player.Hand)
         {
             _writer.WriteLine(Colors.Cyan, card);
         }
     }
     ;
 }