org.pokersource.enum
Class HoldemBeliefVector
public class HoldemBeliefVector
A concrete implementation of BeliefVector for the game of Holdem.
void | fromString(String spec) - Instantiate self from string respresentation.
|
static void | main(String[] args)
|
addHandGroupAbsolute , addHandGroupRelative , addRemainingAbsolute , addRemainingRelative , fromString , getBeliefProb , getHands , numHands , setDeadCards , toString , toStringAtomic , validate |
HoldemBeliefVector
public HoldemBeliefVector(String spec)
Instantiate from a string representation. The syntax is one or more
whitespace separated tokens, where each token takes the form GROUP
[":" RELPROB | "=" ABSPROB]. Here GROUP is the string
representation of a HoldemHandGroup, RELPROB indicates that hands in
the group are RELPROB/100 times as likely as would be expected without
any other information, and ABSPROB indicates that hands in the group
occur precisely ABSPROB percent of the time. If the probability is
omitted then ":100" is the default. Either all groups must use relative
probability or all groups must use absolute probability. The special
value "" may be used for the last GROUP; it denotes the set
of hands not yet mentioned in any previous GROUP.
fromString
public void fromString(String spec)
Instantiate self from string respresentation. This method must be
implemented by all subclasses. Also, subclass constructors should call
super(spec) and then fromString(spec).
- fromString in interface BeliefVector
main
public static void main(String[] args)
PokerSource Home Page - Learn how you can contribute!