Esempio n. 1
0
 public CardGameState(IEnumerable <Card> hand, IEnumerable <Card> minePlayed, IEnumerable <Card> theirsPlayed, bool isMeFirst, bool isFirst, int pot, int bid, int bidScalar)
 {
     aiPlayer         = new AIPlayerState(hand, minePlayed);
     otherPlayer      = new OtherPlayerState(theirsPlayed);
     round            = otherPlayer.cardsPlayed;
     isFirstTurn      = isFirst;
     isAIFirst        = isMeFirst;
     amountInPot      = pot;
     currentBid       = bid;
     currentBidScalar = bidScalar;
 }
Esempio n. 2
0
        public void CloneFrom(AIPlayerState source)
        {
            for (int i = 0; i < hand.Length; ++i)
            {
                hand[i] = source.hand[i];
            }

            for (int i = 0; i < visibleCards.Length; ++i)
            {
                visibleCards[i] = source.visibleCards[i];
            }

            pendingCard         = source.pendingCard;
            cardsPlayed         = source.cardsPlayed;
            visibleScore        = source.visibleScore;
            initialVisibleScore = source.initialVisibleScore;
            allMatch            = source.allMatch;
            initialAllMatch     = source.initialAllMatch;
        }