games.hold_em.ui¶

Texas Hold’em Rich UI for live game display.

This module provides a beautiful Rich-based terminal UI for displaying Texas Hold’em games in real-time, showing:

  • Player positions and chip stacks

  • Community cards and pot

  • Current action and betting

  • Game phase and status

Classes¶

HoldemRichUI

Beautiful Rich UI for displaying a live Texas Hold'em game.

Functions¶

main()

Main function to run the UI demo.

Module Contents¶

class games.hold_em.ui.HoldemRichUI¶

Beautiful Rich UI for displaying a live Texas Hold’em game.

render_action_log()¶

Render recent actions and decisions.

Return type:

rich.panel.Panel

render_community_cards()¶

Render community cards and board.

Return type:

rich.panel.Panel

Render the footer with controls and current action.

Return type:

rich.panel.Panel

render_game_stats()¶

Render game statistics.

Return type:

rich.panel.Panel

render_hand_history()¶

Render hand history summary.

Return type:

rich.panel.Panel

render_header()¶

Render the header with game title and phase.

Return type:

rich.panel.Panel

render_player_info()¶

Render detailed player information.

Return type:

rich.panel.Panel

render_pot_info()¶

Render pot size and betting information.

Return type:

rich.panel.Panel

render_table()¶

Render the poker table with player positions.

Return type:

rich.panel.Panel

run(agent, delay=2.0)¶

Run the live UI with the Hold’em agent.

Parameters:
games.hold_em.ui.main()¶

Main function to run the UI demo.