Esempio n. 1
0
 public bool Hit(Player a_player)
 {
     if (m_deck != null && m_hitRule.DoHit(this) && !IsGameOver(a_player))
     {
         DealHand(a_player, true);
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 public bool IsGameOver(Player a_player)
 {
     if (m_deck != null && /*CalcScore() >= g_hitLimit*/ m_hitRule.DoHit(this) != true || a_player.CalcScore() > g_maxScore)
     {
         ShowHand();
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
 public bool Hit(Player a_player)
 {
     if (m_deck != null && a_player.CalcScore() < g_maxScore && !IsGameOver())
     {
         m_softRule.DoHit(this);
         DealerDealsCard(m_deck, a_player, true);
         return(true);
     }
     return(false);
 }
Esempio n. 4
0
 public void Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Hit(this);
         }
     }
 }
Esempio n. 5
0
 public bool Stand(Player a_player)
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             GetCard(m_deck);
         }
     }
     return(false);
 }
Esempio n. 6
0
 public bool Stand(Player a_player)
 {
     if (m_deck != null)
     {
         this.ShowHand();
         while (m_hitRule.DoHit(this))
         {
             GiveCard(this, true);
         }
     }
     return(false);
 }
 public bool Stand()
 {
     if (theDeck != null)
     {
         ShowHand();
         while (theHitRule.DoHit(this))
         {
             DealCard(true, this);
         }
     }
     return(true);
 }
Esempio n. 8
0
        public void Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    GetShowDealCard(this, true);
                }
            }
        }
Esempio n. 9
0
 public bool Stand(Dealer a_dealer)
 {
     if (m_deck != null)
     {
         while (m_hitRule.DoHit(this))
         {
             a_dealer.ShowHand();
             GetShowAndDealCardToDealer(true, a_dealer);
         }
     }
     return(false);
 }
Esempio n. 10
0
 public bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Deal(this, true);
         }
     }
     return(true);
 }
Esempio n. 11
0
        public void Stand()
        {
            if (m_deck != null)
            {
                ShowHand();
            }

            while (m_hitRule.DoHit(this))
            {
                DrawCard(this, true);
            }
        }
Esempio n. 12
0
        internal bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    NewCard(this);
                }
            }
            return(false);
        }
Esempio n. 13
0
 public bool Stand(Player a_player)
 {
     if (m_deck != null)
     {
         while (m_hitRule.DoHit(this))
         {
             m_dealCardRule.DealCard(m_deck, this, this);
             NotifySubscriber();
         }
         return(true);
     }
     return(false);
 }
Esempio n. 14
0
        public bool Stand(Player a_player)
        {
            if (m_deck != null)
            {
                ShowHand();
            }

            while (m_hitRule.DoHit(this))
            {
                PlaceCard(this, true);
            }
            return(true);
        }
Esempio n. 15
0
 public bool Stand(Player a_dealer)
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Deal(this, true);
         }
         return(true);
     }
     return(false);
 }
Esempio n. 16
0
 public bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             AddCard(this, true);
         }
         return(true);
     }
     return(false);
 }
Esempio n. 17
0
 internal bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Card a_card = m_deck.GetCard();
             a_card.Show(true);
             DealCard(a_card);
         }
     }
     return(false);
 }
Esempio n. 18
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    this.DealCardFromDeck(true, this);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 19
0
        public bool Stand(Player a_player)
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    GetAndGiveNewCard(this, true);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 20
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    GetCardAndShow(this);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 21
0
 public bool Stand()
 {
     if (m_deck != null)
     {
         this.ShowHand();
         while (m_hitRule.DoHit(this))
         {
             m_hitRule.DoHit(this);
             DealOpenCard(true, this);
         }
         return(true);
     }
     return(false);
 }
Esempio n. 22
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();
                while (m_hitRule.DoHit(this))
                {
                    m_hitRule.DoHit(this);

                    GetCardFromDeckAndDealIt(this, true);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 23
0
 public bool Stand(Player a_player)
 {
     if (m_deck != null)
     {
         this.ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Card c;
             c = m_deck.GetCard();
             c.Show(true);
             this.DealCard(c);
             return(true);
         }
     }
     return(false);
 }
 public bool IsGameOver()
 {
     if (m_deck != null && /*CalcScore() >= g_hitLimit*/ m_softRule.DoHit(this) != true)
     {
         return(true);
     }
     return(false);
 }
Esempio n. 25
0
 public bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         foreach (Card c in GetHand())
         {
             c.Show(true);
         }
         while (m_hitRule.DoHit(this))
         {
             DealCard(this, true);
         }
         return(true);
     }
     return(false);
 }
Esempio n. 26
0
        public bool Stand()
        {
            Card c;

            if (m_deck != null)
            {
                ShowHand();
                while (m_hitRule.DoHit(this))
                {
                    c = m_deck.GetCard();
                    c.Show(true);
                    DealCard(c);
                    return(true);
                }
            }
            return(false);
        }
 public bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         foreach (Card c in GetHand())
         {
             c.Show(true);
         }
         while (m_hitRule.DoHit(this))
         {
             m_hitRule.DoHit(this);
             getCardAndDealToPlayer(this);
         }
         return(true);
     }
     return(false);
 }
Esempio n. 28
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    // Card c;
                    // c = m_deck.GetCard();
                    // c.Show(true);
                    // this.DealCard(c);
                    HandCard(this, true);
                }
                return(true);
            }
            return(false);
        }
Esempio n. 29
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                Card c;
                this.ShowHand();

                do
                {
                    c = m_deck.GetCard();
                    c.Show(true);
                    this.DealCard(c);
                }while (m_hitRule.DoHit(this) == true)
                ;

                return(true);
            }
            return(false);
        }
Esempio n. 30
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                this.ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    Card c = m_deck.GetCard();
                    // If it's hit add card.
                    this.showAndAdd(c, true);
                }
                return(true);
            }
            else
            {
                return(false);
            }
        }