Package org.cspoker.common.elements.cards

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


    int compare;
    int quality1, quality2;
    Map<String, Integer> rankMap = new HashMap<String, Integer>();
    double totalTests = 10000.0;
    for (int j = 0; j < totalTests; j++) {
      Deck deck = Deck.createTruelyRandomDeck();
      Hand hand1 = new Hand(deck.deal(5));
      Hand hand2 = new Hand(deck.deal(5));

      compare = hand1.compareTo(hand2);
      qualityGreater = (compare == 1);
      qualitySmaller = (compare == -1);
      qualityEqual = (compare == 0);
View Full Code Here


    this.tableConfiguration = tableConfiguration;
    players = new ConcurrentHashMap<SeatId, MutableSeatedPlayer>(tableConfiguration.getMaxNbPlayers());
  }

  public void setPreviousDeck(Deck previousDeck) {
    this.previousDeck = new Deck(previousDeck);
  }
View Full Code Here

  public void setPreviousDeck(Deck previousDeck) {
    this.previousDeck = new Deck(previousDeck);
  }

  public Deck getPreviousDeck() {
    return new Deck(previousDeck);
  }
View Full Code Here

  private final Map<CardShell, Card> cardMap;

  public TestExactCard() {
    cardMap = new HashMap<CardShell, Card>();

    final Deck deck = Deck.createTruelyRandomDeck();
    final List<Card> list = deck.deal(52);
    for (final Card card : list) {
      final Rank rank = card.getRank();
      final Suit suit = card.getSuit();

      cardMap.put(new CardShell(rank, suit), card);
View Full Code Here

TOP

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

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.