pokerthproto.game module¶
All functionality related to a poker game and its representation.
-
class
pokerthproto.game.ActionInfo(player, kind, money=None)[source]¶ Bases:
objectThe action of a player during the poker game.
Parameters:
-
class
pokerthproto.game.Game(gameId, myPlayerId)[source]¶ Bases:
objectA poker game holding the information about the actions of the players.
-
addAction(playerId, kind, money=None)[source]¶ Adds an action to the current round of the game
Parameters: - playerId – id of player
- kind – type of the action of
Action - money – stake of the action if available
-
addRound(name, cards=None)[source]¶ Adds a poker round to the game
Parameters: - name – poker round of type
Round - cards – board cards of the round
- name – poker round of type
-
bigBlind¶
-
currRound¶
-
dealer¶
-
existPlayer(id)[source]¶ Checks if a player exists in the game
Parameters: id – id of the player Returns: test if player exists
-
existRound(name)[source]¶ Checks if the poker round exists in this game
Parameters: name – poker round of RoundReturns: test if round exists
-
gameId¶
-
getActions(playerId=None, rounds=None)[source]¶ Retrieves actions from the game with optional restrictions on rounds and a player.
Parameters: Returns: list of actions (
Actioninfo)
-
getPlayer(id)[source]¶ Retrieves a player from the game
Parameters: id – id of the player Returns: player
-
handNum¶
-
highestSet¶
-
minimumRaise¶
-
myBet¶
-
othersCards¶
-
players¶
-
pocketCards¶
-
seats¶
-
smallBlind¶
-
wins¶
-
-
exception
pokerthproto.game.GameError[source]¶ Bases:
exceptions.Exception