|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.asdf.plugins.pokergames.texasholdem.bots.Bananabot
public class Bananabot
Simple rule-based bot to show the capabilities of the AI-interface.
| Constructor Summary | |
|---|---|
Bananabot()
|
|
| Method Summary | |
|---|---|
void |
actionEvent(int pos,
Action act)
An action has been observed. |
void |
dealHoleCardsEvent()
An event sent when all players are being dealt their hole cards |
void |
gameOverEvent()
The hand is now over. |
void |
gameStartEvent(GameInfo gInfo,
int seat)
A new game has been started. |
void |
gameStateChanged()
The game info state has been updated Called after an action event has been fully processed |
Action |
getAction()
Requests an Action from the player Called when it is the Player's turn to act. |
void |
receiveHand(Hand hand,
int seat)
Receive your hand, and your seat, this is called when the player is dealt his hand |
void |
showdownEvent(int seat,
Card c1,
Card c2)
A showdown has occurred. |
void |
stageEvent(int stage)
A new betting round has started. |
void |
winEvent(int seat,
double amount,
Hand hand)
A player at seat has won amount with the hand |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Bananabot()
| Method Detail |
|---|
public Action getAction()
getAction in interface Playerpublic void stageEvent(int stage)
stageEvent in interface Player
public void showdownEvent(int seat,
Card c1,
Card c2)
showdownEvent in interface Playerseat - of the player showingc1 - the first hole card shownc2 - the second hole card shown
public void gameStartEvent(GameInfo gInfo,
int seat)
gameStartEvent in interface PlayergInfo - the game informationpublic void dealHoleCardsEvent()
dealHoleCardsEvent in interface Player
public void actionEvent(int pos,
Action act)
actionEvent in interface Playerpos - (int) the position of the player who made the actionact - (Action) the action made
This should be called when any one makes an actionpublic void gameStateChanged()
gameStateChanged in interface Playerpublic void gameOverEvent()
gameOverEvent in interface Player
public void winEvent(int seat,
double amount,
Hand hand)
winEvent in interface Playerseat - the playeramount - the amount won
public void receiveHand(Hand hand,
int seat)
Player
receiveHand in interface Playerseat - your seat in this round
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||