haive.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¶
Beautiful Rich UI for displaying a live Texas Hold'em game. |
Functions¶
|
Main function to run the UI demo. |
Module Contents¶
- class haive.games.hold_em.ui.HoldemRichUI[source]¶
Beautiful Rich UI for displaying a live Texas Hold’em game.
Render the footer with controls and current action.
- Return type:
rich.panel.Panel
- render_header()[source]¶
Render the header with game title and phase.
- Return type:
rich.panel.Panel
- render_table()[source]¶
Render the poker table with player positions.
- Return type:
rich.panel.Panel
- run(agent, delay=2.0)[source]¶
Run the live UI with the Hold’em agent.
- Parameters:
agent (haive.games.hold_em.game_agent.HoldemGameAgent) – The HoldemGameAgent instance
delay (float) – Delay between updates for readability