|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectglassfrog.players.Player
glassfrog.players.RandomPlayer
glassfrog.players.RandomNoLimitPlayer
public class RandomNoLimitPlayer
The RandomNoLimit player class is a version of the RandomPlayer for NoLimit Texas Holdem The Player will perform a random action based on a seed, a random seed or a string of weights ("1,1,1") being the uniform weighted string for f,c,r. A raise value will be random number between the players min bet and their stacksize This extends the RandomPlayer class
Field Summary | |
---|---|
private int |
minBet
|
Fields inherited from class glassfrog.players.RandomPlayer |
---|
callWeight, foldWeight, raiseWeight, rng |
Constructor Summary | |
---|---|
RandomNoLimitPlayer(java.lang.String name,
int buyIn)
Constructor for a general purpose Random No Limit player (random seed, uniform actions) |
|
RandomNoLimitPlayer(java.lang.String name,
int buyIn,
int seed)
Constructor for a Random No Limit Player with a seed |
|
RandomNoLimitPlayer(java.lang.String name,
int buyIn,
java.lang.String weights)
Constructor for a Random No Limit Player with weighted values for the actions |
Method Summary | |
---|---|
java.lang.String |
getAction()
Using a wieghted sum and an random number, generate the next action for the bot to take. |
java.lang.String |
toString()
Append RandomNoLimit identifier to the @Player toString method |
void |
update(java.lang.String gamestate)
Update the players information based on the gamestate String. |
Methods inherited from class glassfrog.players.RandomPlayer |
---|
shutdown |
Methods inherited from class glassfrog.players.Player |
---|
addToScore, bet, call, compareTo, fold, getBuyIn, getCardString, getCurrentBet, getHandRank, getHandString, getName, getPosition, getScore, getSeat, getStack, getTotalCommitedToPot, initTimeout, isAAAIPlayer, isActed, isAllIn, isFolded, isGuiPlayer, isSocketPlayer, payout, postBlind, resetHand, resetPlayer, resetRound, resetStack, setBuyIn, setCardString, setHandRank, setHandString, setName, setPosition, setScore, setSeat, setStack, subtractTotalCommitedToPot, toShortString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private int minBet
Constructor Detail |
---|
public RandomNoLimitPlayer(java.lang.String name, int buyIn, int seed)
name
- String representing the player namebuyIn
- int representing the buy in amountseed
- an int to seed the rngpublic RandomNoLimitPlayer(java.lang.String name, int buyIn, java.lang.String weights)
name
- String representing the player namebuyIn
- int representing the buy in amountweights
- A String representing the f,c,r weights ("1,1,1") being uniformpublic RandomNoLimitPlayer(java.lang.String name, int buyIn)
name
- String representing the player namebuyIn
- int representing the buy in amountMethod Detail |
---|
public java.lang.String getAction()
getAction
in class Player
public void update(java.lang.String gamestate)
update
in class RandomPlayer
gamestate
- The AAAI formated gamestate Stringpublic java.lang.String toString()
toString
in class Player
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |