java.lang.Object
org.pokersource.enum.BeliefVector
org.pokersource.enum.HoldemBeliefVector
- public class HoldemBeliefVector
- extends BeliefVector
A concrete implementation of BeliefVector for the game of Holdem.
HoldemBeliefVector
public HoldemBeliefVector(java.lang.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(java.lang.String spec)
- Description copied from class:
BeliefVector
- Instantiate self from string respresentation. This method must be
implemented by all subclasses. Also, subclass constructors should call
super(spec) and then fromString(spec).
- Specified by:
fromString
in class BeliefVector
main
public static void main(java.lang.String[] args)