Package com.poker.analyst.combinations.auxil

Examples of com.poker.analyst.combinations.auxil.CardValue


        return str;
    }
  @Override
  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    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.equals(plCard)){
          if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
          cardValue = new CardValue();
          cardValue.setCard(plCard);
          cardValue.setCardPosition(i);
          cardValue.setCardRange(CardRangeInComb.TOP);
          listCardValues.add(cardValue);
        }
      } 
    }
   
View Full Code Here


    this.availableCombinations = availableCombinations;
  }
 
  public List<CardValue> getCardValuesFromComb(Combination combination, Hand hand){
    List<CardValue> cardValues = null;   
    CardValue cardValue = null;   
    List<Card> combCardList = combination.getCombinationList();
   
    if (combCardList == null) return null;
    if (hand == null) return null;
    if (hand.getHandCards() == null) return null;
View Full Code Here

    }
   
    @Override
  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    CardValue cardValue;
    Card plCard;
   
    CardFace cface = getMaxValue();
    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);
        listCardValues.add(cardValue);
      }
    }
    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(1);
        cardValue.setCardRange(CardRangeInComb.LOW);
        listCardValues.add(cardValue);
      }
    }
   
    return listCardValues;
View Full Code Here

        return 5;
    }  
  @Override
  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    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.equals(plCard)){
          if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
          cardValue = new CardValue();
          cardValue.setCard(plCard);
          cardValue.setCardPosition(i);
          cardValue.setCardRange(CardRangeInComb.TOP);
          listCardValues.add(cardValue);
        }
      } 
    }
    return updateCardsRang(listCardValues);
View Full Code Here


  @Override
  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);
        listCardValues.add(cardValue);
      }
    }   
    return listCardValues;
  }
View Full Code Here

   
   
    @Override
  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    CardValue cardValue;
    Card plCard;
       
   
    CardFace cface = getMaxValue();
    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);
        listCardValues.add(cardValue);
      }
    }
    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(1);
        cardValue.setCardRange(CardRangeInComb.LOW);
        listCardValues.add(cardValue);
      }
    }
    return listCardValues;
  }
View Full Code Here

    }

    @Override
  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);
        listCardValues.add(cardValue);
      }
    }   
    return listCardValues;
  }
View Full Code Here

    }

    @Override
  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);
        listCardValues.add(cardValue);
      }
    }   
    return listCardValues;
  }
View Full Code Here

    this.outFaces = outFaces;
  }
  @Override
  public List<CardValue> getCardValues(Hand hand) {
    List<CardValue> listCardValues = null;
    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())){
          if (listCardValues == null) listCardValues = new ArrayList<CardValue>();
          cardValue = new CardValue();
          cardValue.setCard(plCard);
          cardValue.setCardPosition(i);
          cardValue.setCardRange(CardRangeInComb.TOP);
          listCardValues.add(cardValue);
        }
      } 
    }
    return updateCardsRang(listCardValues);
View Full Code Here

TOP

Related Classes of com.poker.analyst.combinations.auxil.CardValue

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.