Package com.poker.analyst.element

Examples of com.poker.analyst.element.Card


        final List<Card> cardsList = new ArrayList<Card>(52);
        for (final Suit suit : Suit.values()) {         
          if (suit.equals(Suit.forAnalyse)) continue;
            for (final CardFace cardFace : CardFace.values()) {
                cardsList.add(new Card(suit, cardFace));
            }
        }
        return cardsList;
    }
View Full Code Here


    private static Card getCard() {

        final Random random = new Random(new Date().getTime());
        final int number = random.nextInt(cardsList.size());
        final Card card = cardsList.get(number);
        cardsList.remove(number);
        return card;
    }
View Full Code Here

    }
    public static Card getCard(List<Card> cardsList) {

        final Random random = new Random(new Date().getTime());
        final int number = random.nextInt(cardsList.size());
        final Card card = cardsList.get(number);
        cardsList.remove(number);
        return card;
    }  
View Full Code Here

TOP

Related Classes of com.poker.analyst.element.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.