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;
}