com.biotools.meerkat
Interface Player

All Superinterfaces:
GameObserver

public interface Player
extends GameObserver

An interface for a poker player.


Method Summary
 Action getAction()
          Requests an Action from the player Called when it is the Player's turn to act.
 void holeCards(Card c1, Card c2, int seat)
          receive your hole cards
 void init(Preferences prefs)
          Initialize your player from the given preferences file.
 
Methods inherited from interface com.biotools.meerkat.GameObserver
actionEvent, dealHoleCardsEvent, gameOverEvent, gameStartEvent, gameStateChanged, showdownEvent, stageEvent, winEvent
 

Method Detail

init

void init(Preferences prefs)
Initialize your player from the given preferences file.

Parameters:
prefs - some settings for the player

holeCards

void holeCards(Card c1,
               Card c2,
               int seat)
receive your hole cards

Parameters:
c1 - first hole card
c2 - second hole card
seat - your seat number this game

getAction

Action getAction()
Requests an Action from the player Called when it is the Player's turn to act.