Exemplo n.º 1
0
        public virtual void Show()
        {
            Console.WriteLine("-------------------");
            Console.WriteLine("Player: " + this.ToString());

            PlayerStatistics playerStatistics = new PlayerStatistics(cardList);

            Console.WriteLine("getMaxValue(); " + playerStatistics.MaxValue);
            Console.WriteLine("getOrderedValues(); " + playerStatistics.OrderedValues);
            for (int i = 1; i <= 5; i++)
            {
                Console.WriteLine("hasSameValue(" + i + "); " + playerStatistics.HasSameValue(i));
                Console.WriteLine("getOrderedValues(" + i + "); " + playerStatistics.GetOrderedValues(i));
            }
            for (int i = 1; i <= 5; i++)
            {
                Console.WriteLine("hasSameColor(" + i + "); " + playerStatistics.HasSameColor(i));
            }
            Console.WriteLine("hasTwoPairs(); " + playerStatistics.HasTwoPairs());
            foreach (Value value in Value.Values())
            {
                if (Value.INFANTE.Greater(value))
                {
                    Console.WriteLine("hasStairStart(" + value.Title + "); " + playerStatistics.HasStairStart(value));
                }
            }
            Console.WriteLine("hasStair(); " + playerStatistics.HasStair());
        }