org.pokersource.enum

Class HoldemBeliefVector


public class HoldemBeliefVector
extends BeliefVector

A concrete implementation of BeliefVector for the game of Holdem.
Author:
Michael Maurer <mjmaurer@yahoo.com>

Field Summary

Fields inherited from class org.pokersource.enum.BeliefVector

universalGroup

Constructor Summary

HoldemBeliefVector(String spec)
Instantiate from a string representation.

Method Summary

void
fromString(String spec)
Instantiate self from string respresentation.
static void
main(String[] args)

Methods inherited from class org.pokersource.enum.BeliefVector

addHandGroupAbsolute, addHandGroupRelative, addRemainingAbsolute, addRemainingRelative, fromString, getBeliefProb, getHands, numHands, setDeadCards, toString, toStringAtomic, validate

Constructor Details

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.

Method Details

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).
Overrides:
fromString in interface BeliefVector

main

public static void main(String[] args)

PokerSource Home Page - Learn how you can contribute!