Ejemplo n.º 1
0
 public PokerGameRanker()
 {
     highCardRanker      = new HighCardRanker();
     pairRanker          = new PairRanker(highCardRanker);
     twoPairRanker       = new TwoPairRanker(pairRanker);
     threeOfAKindRanker  = new ThreeOfAKindRanker(twoPairRanker);
     straightRanker      = new StraightRanker(threeOfAKindRanker);
     flushRanker         = new FlushRanker(straightRanker);
     fullHouseRanker     = new FullHouseRanker(flushRanker);
     fourOfAKindRanker   = new FourOfAKindRanker(fullHouseRanker);
     straightFlushRanker = new StraightFlushRanker(fourOfAKindRanker);
     royalFlushRanker    = new RoyalFlushRanker(straightFlushRanker);
 }
Ejemplo n.º 2
0
 public void Init()
 {
     highcardRanker = new HighCardRanker();
     target = new PairRanker(highcardRanker);
 }
 public void Init()
 {
     highcardRanker = new HighCardRanker();
     target = new ThreeOfAKindRanker(highcardRanker);
 }
 public void Init()
 {
     highcardRanker = new HighCardRanker();
     target = new FullHouseRanker(highcardRanker);
 }