Package com.poker.analyst.combination

Examples of com.poker.analyst.combination.HighCard


      if (card != null) allCards.add(card);
   
    return analyseHighCards(allCards, plCards);
  }
  public static List<HighCard> analyseHighCards(Set<Card> allCards, PlayingCards plCards){
    HighCard      high    = null;
    List<HighCard>     highList   = new ArrayList<HighCard>()
    List<Card>       cardList  = new ArrayList<Card>();
   
    int i = 0;
    for (Card card: allCards){
      if (i++>=5) break;
      cardList.add(card);
    }
    high = new HighCard();
    high.setCombinationList(cardList);
    highList.add(high);
       
    return highList;
  }
View Full Code Here

TOP

Related Classes of com.poker.analyst.combination.HighCard

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.