public bool NewGame(Player thePlayer)
 {
     if (theDeck == null || IsGameOver())
     {
         theDeck = new Deck();
         ClearHand();
         thePlayer.ClearHand();
         return(theNewGameRule.NewGame(this, thePlayer));
     }
     return(false);
 }
Beispiel #2
0
 public bool NewGame(Player a_player)
 {
     if (m_deck == null || IsGameOver())
     {
         m_deck = new Deck();
         ClearHand();
         a_player.ClearHand();
         return(m_newGameRule.NewGame(m_deck, this, a_player));
     }
     return(false);
 }
Beispiel #3
0
        public bool NewGame(Player a_player)
        {
            if (m_deck == null || IsGameOver())
            {
                //Get a 'normal' deck of cards or get a 'fake' deck, that can be manipulated
                m_deck = m_deckFactory.GetDeck();

                ClearHand();
                a_player.ClearHand();
                return(m_newGameRule.NewGame(m_deck, this, a_player));
            }
            return(false);
        }