|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.asdf.plugins.pokergames.texasholdem.bots.HandEvaluator
public class HandEvaluator
Class for comparing hands
Constructor Summary | |
---|---|
HandEvaluator()
Default constructor |
Method Summary | |
---|---|
double |
handRank(Card c1,
Card c2,
Hand board,
int opps)
Calculates the probability of having the best hand against random opponents |
double |
potential(Card c1,
Card c2,
Hand bd,
boolean positive)
|
int |
rankHand(Card c1,
Card c2,
Hand board)
Gives a numerical ranking of the hand |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HandEvaluator()
Method Detail |
---|
public int rankHand(Card c1, Card c2, Hand board)
c1
- Hole card 1c2
- Hole card 2board
- Current board
public double handRank(Card c1, Card c2, Hand board, int opps)
c1
- Hole card 1c2
- Hole card 2board
- Current boardopps
- Number of opponents
public double potential(Card c1, Card c2, Hand bd, boolean positive)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |