示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#4
0
 public void Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Hit(this);
         }
     }
 }
示例#5
0
 public bool Stand(Player a_player)
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             GetCard(m_deck);
         }
     }
     return(false);
 }
示例#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);
 }
示例#8
0
        public void Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    GetShowDealCard(this, true);
                }
            }
        }
示例#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);
 }
示例#10
0
 public bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             Deal(this, true);
         }
     }
     return(true);
 }
示例#11
0
        public void Stand()
        {
            if (m_deck != null)
            {
                ShowHand();
            }

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

                while (m_hitRule.DoHit(this))
                {
                    NewCard(this);
                }
            }
            return(false);
        }
示例#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);
 }
示例#14
0
        public bool Stand(Player a_player)
        {
            if (m_deck != null)
            {
                ShowHand();
            }

            while (m_hitRule.DoHit(this))
            {
                PlaceCard(this, true);
            }
            return(true);
        }
示例#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);
 }
示例#16
0
 public bool Stand()
 {
     if (m_deck != null)
     {
         ShowHand();
         while (m_hitRule.DoHit(this))
         {
             AddCard(this, true);
         }
         return(true);
     }
     return(false);
 }
示例#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);
 }
示例#18
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    this.DealCardFromDeck(true, this);
                }
                return(true);
            }
            return(false);
        }
示例#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);
        }
示例#20
0
        public bool Stand()
        {
            if (m_deck != null)
            {
                ShowHand();

                while (m_hitRule.DoHit(this))
                {
                    GetCardAndShow(this);
                }
                return(true);
            }
            return(false);
        }
示例#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);
 }
示例#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);
        }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#28
0
文件: Dealer.cs 项目: liha16/607w3
        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);
        }
示例#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);
        }
示例#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);
            }
        }