poker_ai.terminal package¶
Subpackages¶
Submodules¶
poker_ai.terminal.render module¶
-
poker_ai.terminal.render.
print_header
(term: blessed.terminal.Terminal, state: poker_ai.games.short_deck.state.ShortDeckPokerState, og_name_to_name: Dict[str, str])¶
-
poker_ai.terminal.render.
print_log
(term: blessed.terminal.Terminal, log: poker_ai.terminal.ascii_objects.logger.AsciiLogger)¶
-
poker_ai.terminal.render.
print_table
(term: blessed.terminal.Terminal, players: Dict[str, poker_ai.terminal.ascii_objects.player.AsciiPlayer], public_cards: poker_ai.terminal.ascii_objects.card_collection.AsciiCardCollection, n_table_rotations: int, n_spaces_between_cards: int = 4, n_chips_in_pot: int = 0)¶
poker_ai.terminal.results module¶
-
class
poker_ai.terminal.results.
UserResults
¶ Bases:
object
Class to store user results.
-
add_result
(strategy_path: str, agent: str, state: poker_ai.games.short_deck.state.ShortDeckPokerState, og_name_to_name: Dict[str, str])¶ Adds results to file.
- Parameters
strategy_path (str) – Path to the strategy.
agent (Agent) – Trainable entity that stores regret and unnormalized strategy.
state (ShortDeckPokerState) – Current state of the game.
og_name_to_name (Dict[str, str]) –
-