Package com.poker.analyst.element

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.equals(plCard)){
View Full Code Here


    List<ThreeOfKind>     combinations= null;             
               
    int count      = 0;
    int i = 0;
   
    CardFace cardFace = null;
   
    for (Card card: allCards){
      i++;
      if (card.getFace().equals(cardFace))       
        count++;
View Full Code Here

    List<FourOfKind>     combinations= null;         
               
    int count      = 0;
    int i = 0;
   
    CardFace cardFace = null;
   
    for (Card card: allCards){
      i++;
      if (card.getFace().equals(cardFace))       
        count++;
View Full Code Here

           
   
    int count      = 0;
    int i = 0;
   
    CardFace cardFace = null;
   
    for (Card card: allCards){
      i++;
      if (card.getFace().equals(cardFace))       
        count++;
View Full Code Here

        repeatedCards.add(repeatedComb.getMaxValue())

    allStraightCardLists = new ArrayList<Set<Card>>();   

    Set<Card> allNonRepCards = new TreeSet<Card>(new CardComparator());
    CardFace previousCard = null;

    for (Card card: allCards){
      if (card.getFace().equals(previousCard))
        continue;
      else
View Full Code Here

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

    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)){
View Full Code Here

  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

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

    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

Related Classes of com.poker.analyst.element.CardFace

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.