Ejemplo n.º 1
0
 public HandEvaluator(List<Card> sortedHand)
 {
     heartsSum = 0;
     diamondSum = 0;
     clubSum = 0;
     spadeSum = 0;
     cards = sortedHand;
     handvalue = new HandValue();
 }
Ejemplo n.º 2
0
 public HandEvaluator(Card[] sortedHand)
 {
     heartsSum = 0;
     diamondSum = 0;
     clubSum = 0;
     spadeSum = 0;
     cards = new Card[5];
     handvalue = new HandValue();
 }
Ejemplo n.º 3
0
 public HandEvaluator(Card[] sortedHand)
 {
     heartsSum  = 0;
     diamondSum = 0;
     clubSum    = 0;
     spadesSum  = 0;
     cards      = new Card[5];
     cards      = sortedHand;
     handValue  = new HandValue();
 }
Ejemplo n.º 4
0
 public HandEval(Card[] sortedHand)
 {
     heartSum   = 0;
     diamondSum = 0;
     clubSum    = 0;
     spadSum    = 0;
     cards      = new Card[5];
     cards      = sortedHand;
     HandValue  = new HandValue();
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Constructor initialize attributes of the class
 /// </summary>
 /// <param name="sortedCardFromPlayer">Sorter array of cards for palyer</param>
 public EvaluationBase(Card[] sortedCardFromPlayer)
 {
     totalHeartSuit   = 0;
     totalDiamondSuit = 0;
     totalClubSuit    = 0;
     totalSpadeSuit   = 0;
     totalRoyalSuit   = 0;
     cards            = new Card[5];
     Cards            = sortedCardFromPlayer;
     handValue        = new HandValue();
 }