return cardValues;
}
public Card getKicker(List<CardValue> listCardValues){
Hand hand = new Hand(availableCombinations.getPlCards().getPlayerCards());
Card kicker = null;
if (hand == null) return null;
if (hand.getHandCards() == null) return null;
if (hand.getHandCards().length != 2) return null;
if (listCardValues == null || listCardValues.size() == 0){
if (hand.getHandCards()[0].getFace().getSerialNumber() >=
hand.getHandCards()[1].getFace().getSerialNumber())
return hand.getHandCards()[0];
else
return hand.getHandCards()[1];
}
if (listCardValues.size() == 2){
return null;
}
boolean isNotInCV = true;
for (int q = 0; q<2; q++){
isNotInCV = true;
for(CardValue cv: listCardValues){
if (cv.getCard().equals(hand.getHandCards()[q]))
isNotInCV = false;
}
if (isNotInCV)
return hand.getHandCards()[q];
}
return kicker;
}