Example #1
0
 public void CloneFrom(OtherPlayerState source)
 {
     for (int i = 0; i < visibleCards.Length; ++i)
     {
         visibleCards[i] = source.visibleCards[i];
     }
     cardsPlayed  = source.cardsPlayed;
     visibleScore = source.visibleScore;
     allMatch     = source.allMatch;
 }
Example #2
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;
 }