Examples of CardFace


Examples of com.poker.analyst.element.CardFace

  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    CardValue cardValue;
    Card plCard;
       
    CardFace cface = getMinValue();
    for (int q = 0; q<2 ; q++){
      plCard = hand.getHandCards()[q];
      if (cface.equals(plCard.getFace())){
        if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
        cardValue = new CardValue();
        cardValue.setCard(plCard);
        cardValue.setCardPosition(0);
        cardValue.setCardRange(CardRangeInComb.TOP);
View Full Code Here

Examples of com.poker.analyst.element.CardFace

  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    CardValue cardValue;
    Card plCard;
       
    CardFace cface = getMinValue();
    for (int q = 0; q<2 ; q++){
      plCard = hand.getHandCards()[q];
      if (cface.equals(plCard.getFace())){
        if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
        cardValue = new CardValue();
        cardValue.setCard(plCard);
        cardValue.setCardPosition(0);
        cardValue.setCardRange(CardRangeInComb.TOP);
View Full Code Here

Examples of com.poker.analyst.element.CardFace

    CardValue cardValue;
    Card plCard;
    Card cardFromList;
     
    List<Card> listCardComb = getCombinationList();
    CardFace cface = getMinValue();
    for (int i = 0; i< listCardComb.size(); i++){
      cardFromList = listCardComb.get(i);
      for (int q = 0; q<2 ; q++){
        plCard = hand.getHandCards()[q];
        if (cardFromList.getFace().equals(plCard.getFace())){
View Full Code Here

Examples of com.poker.analyst.element.CardFace

    public static Card parseCard(final String comb) {

        if (comb.length() != 2) {
            return null;
        }
        final CardFace face = CardFace.getCardFaceFromShortName(comb.charAt(0));
        final Suit suit = Suit.getSuitFromShortName(comb.charAt(1));
        if (suit != null && face != null) {
            return new Card(suit, face);
        }
        return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.