Beispiel #1
0
        public static void DisplayPlayerInfo(Player player)
        {
            DrawCardIfHandIsEmpty(player);
            player.GetAllBooks(); // Checks for any books in the initial hand
            DrawCardIfHandIsEmpty(player);

            if (player.Name == "CPU")
            {
                Console.WriteLine("CPU");
            }
            else
            {
                Console.WriteLine(player.ToString());  // Prints player's hand
            }

            Console.WriteLine("{0}'s Books: {1}", player.Name, player.Num_Of_Books); // Prints number of books
        }