Package org.cspoker.common.elements.cards

Examples of org.cspoker.common.elements.cards.Card


    // 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;
        }
      }
View Full Code Here

TOP

Related Classes of org.cspoker.common.elements.cards.Card

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.