Exemple #1
0
        public static int BidPoints2(List <int> input, Suit suit)
        {
            int score = 0;

            for (int i = 0; i <= 4; i++)
            {
                Ranks ranks = new Ranks(suit);
                Suits.TrumpSuit2(suit);
                Suits.SwitchJacks(suit);

                if (Ranks.cards.isTrump[input[i]] == true)
                {
                    if (Ranks.cards.value[input[i]] >= 5)
                    {
                        score++;
                        score++;
                        score++;
                        //Console.Write("3* ");
                    }

                    else if (Ranks.cards.value[input[i]] >= 2)
                    {
                        score++;
                        score++;
                        //Console.Write("2* ");
                    }

                    else
                    {
                        score++;
                        //Console.Write("1* ");
                    }
                }

                else if (Ranks.cards.value[input[i]] == 5)
                {
                    score++;
                    //Console.Write("1 ");
                }

                else
                {
                    //Console.Write("0 ");
                }
            }
            return(score);
        }
Exemple #2
0
 public Ranks(Suit suit)
 {
     DetermineRank(suit);
     Suits.AssignSuit();
     Suits.SwitchJacks(suit);
 }