pokerthproto.poker module

All data structures related to poker like poker actions, cards, rounds etc.

class pokerthproto.poker.Action[source]

Bases: object

Enum of possible player actions in poker

ALLIN = 6
BET = 4
CALL = 3
CHECK = 2
FOLD = 1
NONE = 0
RAISE = 5
class pokerthproto.poker.Round[source]

Bases: object

Enum of poker rounds where posting blinds is considered a round too.

BIG_BLIND = 5
FLOP = 1
PREFLOP = 0
RIVER = 3
SMALL_BLIND = 4
TURN = 2
pokerthproto.poker.cardToInt(card)[source]

Converts a poker card into an integer representation.

Parameters:card – poker card like 2d, Th, Qc etc.
Returns:integer
pokerthproto.poker.intToCard(i)[source]

Converts an integer into a poker card

Parameters:i – integer
Returns:poker card like 2d, Th, Qc etc.