Uses of Class
poker.Card

Packages that use Card
poker   
 

Uses of Card in poker
 

Methods in poker that return Card
 Card Deck.deal()
          Obtain the next card in the deck.
 Card Deck.dealCard()
          Obtain a random card from the deck.
 Card Deck.extractRandomCard()
          Remove and return a randomly selected card from within the deck.
 Card GameInfo.getBoardCard(int i)
          Obtain the nth card on the table
 Card Hand.getCard(int pos)
          Get the specified card in the hand
 Card Deck.getCard(int i)
          Obtain the card at a specific index in the deck.
 Card Deck.getTopCard()
          Get the first card in the deck
 Card Deck.pickRandomCard()
          Return a randomly selected card from within the deck without removing it.
 

Methods in poker with parameters of type Card
 boolean Hand.addCard(Card c)
          Add a card to the hand.
 boolean Hand.contains(Card c)
           
 boolean Card.equals(Card c)
           
 void Deck.extractCard(Card c)
          Remove a card from within the deck.
 int Deck.findCard(Card c)
          Find position of Card in Deck.
 int Deck.findDiscard(Card c)
           
 void GameInfo.flop(Card c1, Card c2, Card c3)
          Proceed to stage FLOP
static java.lang.String Hand.getCardString(Card c1, Card c2)
          Get a string to represent this starting hand (AA, AKs, QJo, ??, etc...)
 int GameInfo.getHandRank(Card c1, Card c2)
          Look up a the rank of a hand against the current board
 double HandEvaluator.handRank(Card c1, Card c2, Hand h)
          Calculates the probability of having the best hand against one opponent.
 double HandEvaluator.handRank(Card c1, Card c2, Hand h, int np)
          Calculates the probability of having the best hand against several opponents.
static double HandEvaluator.handRank(Card c1, Card c2, int[][] rankCache, Deck dk)
          Calculate the strength of the given hand.
static double HandEvaluator.handRankNative(Card c1, Card c2, Hand h)
           
 boolean Deck.inDeck(Card c)
          See if a card is in the deck, or if it has been dealt.
static boolean HandEvaluator.isTheNuts(Card c1, Card c2, Hand board, int[][] rankCache)
          Determine if the hand is the nuts (no hands beat it)
static java.lang.String HandEvaluator.nameHand(Card c1, Card c2, Hand b)
          Given a hand, return a string naming the hand ('Ace High Flush', etc..)
 void Player.newGame(GameInfo gInfo, Card c1, Card c2, int ID)
          Start playing a new game.
static double[] HandEvaluator.potential(Card c1, Card c2, Hand bd, poker.ai.model.WeightTable wt)
           
static double HandEvaluator.ppot1(Card c1, Card c2, Hand bd, poker.ai.model.WeightTable wt)
           
static int HandEvaluator.rankHand(Card c1, Card c2, Hand h)
          Get a numerical ranking of this hand.
 void Deck.replaceCard(Card c)
          Place a card back into the deck.
 void PlayerInfo.revealHand(Card c1, Card c2)
          Reveal the hole cards in a showdown
 void GameInfo.revealHand(int n, Card c1, Card c2)
          Reveal a players hand in a showdown.
 void GameInfo.revealHand(java.lang.String name, Card c1, Card c2)
          Reveal a players hand in a showdown.
 void GameInfo.river(Card c)
          Proceed to stage RIVER
 void Hand.setCard(int pos, Card c)
          Set the card at pos to the given card
 void Player.showdownEvent(int pos, Card c1, Card c2)
          Player pos has shown two cards.
 void GameObserver.showdownEvent(int pos, Card c1, Card c2)
           
 void GameInfo.turn(Card c)
          Proceed to stage TURN