}
// the player with the single highest card gets the odd chips that can't
// be divided over the winners
if (pot.getChips().getValue() != 0) {
MutableSeatedPlayer playerWithHighestSingleCard = winners.get(0);
Card highestCard = new Hand(playerWithHighestSingleCard
.getPocketCards()).getHighestRankCard();
for (MutableSeatedPlayer player : winners) {
Card otherHighestCard = new Hand(player.getPocketCards())
.getHighestRankCard();
int compareSingleBestCard = highestCard
.compareTo(otherHighestCard);
if ((compareSingleBestCard > 0)
|| ((compareSingleBestCard == 0) && (otherHighestCard
.getSuit().compareTo(highestCard.getSuit()) > 0))) {
playerWithHighestSingleCard = player;
highestCard = otherHighestCard;
}
}
Showdown.logger
.info("Odd chips to player with highest card in hand");
pot.getChips().transferAllChipsTo(
winnersMap.get(playerWithHighestSingleCard.getId())
.getGainedChipsPile());
}
}