Пример #1
0
        public void getFlop()
        {
            Label RobotCombo = Control.Find("label9", true).FirstOrDefault() as Label;

            RobotCombo.Visible = false;
            DrawCards.VisibleCards();
            ShuffleCards();
            getHand();

            // for player & PC  3 4 5
            for (int i = 2; i < 5; i++)
            {
                playerHand[i] = getDeck[i + 2];//
                pcHand[i]     = new Card {
                    MySuit = getDeck[i + 2].MySuit, MyValue = getDeck[i + 2].MyValue, count = 0
                };
                Dilir[i - 2] = new Card {
                    MySuit = getDeck[i + 2].MySuit, MyValue = getDeck[i + 2].MyValue, count = 0
                };;                                                                                                        //  1 2 3
            }
            displayCardsPlayers();
            for (int i = 5; i < 8; i++)
            {
                DrawCards.DrawCardSuitValue(Dilir[i - 5], i, this);  // 1 2 3
            }
            sortCards();
            evaluateHands();
            RobotCall();
        }
Пример #2
0
 public void displayCardsPlayers()
 {
     for (int i = 0; i < 2; i++)
     {
         DrawCards.DrawCardSuitValue(playerHand[i], i, this);
     }
     for (int i = 2; i < 4; i++)
     {
         DrawCards.DrawCardSuitValue(pcHand[i - 2], i, this);
     }
 }
Пример #3
0
        public void getRiver()
        {
            // for player & PC  7
            for (int i = 6; i < 7; i++)
            {
                playerHand[i] = getDeck[i + 2]; //7
                pcHand[i]     = playerHand[i];
                Dilir[i - 2]  = playerHand[i];  // 5
            }
            for (int i = 9; i < 10; i++)        //5
            {
                DrawCards.DrawCardSuitValue(Dilir[i - 5], i, this);
            }
            sortCards();
            evaluateHands();
            // RobotCall();
            ResultBank();
            Label myLabel = Control.Find("Result", true).FirstOrDefault() as Label;

            MessageBox.Show(myLabel.Text);
        }
Пример #4
0
 public void getTern()
 {
     // for player & PC  6
     for (int i = 5; i < 6; i++)
     {
         playerHand[i] = getDeck[i + 2]; //6
         pcHand[i]     = new Card {
             MySuit = getDeck[i + 2].MySuit, MyValue = getDeck[i + 2].MyValue, count = 0
         };
         Dilir[i - 2] = new Card {
             MySuit = getDeck[i + 2].MySuit, MyValue = getDeck[i + 2].MyValue, count = 0
         };                      // 4
     }
     for (int i = 8; i < 9; i++) // 4
     {
         DrawCards.DrawCardSuitValue(Dilir[i - 5], i, this);
     }
     sortCards();
     evaluateHands();
     RobotCall();
 }