haive.games.chess.ui¶
Chess game UI using Rich for beautiful terminal display.
Classes¶
Beautiful Rich UI for displaying a live chess agent game. |
Functions¶
|
Run a chess game with the Rich UI. |
Module Contents¶
- class haive.games.chess.ui.ChessRichUI¶
Beautiful Rich UI for displaying a live chess agent game.
Init .
- render_analysis(color)¶
Render position analysis for a player.
- Parameters:
color (str)
- Return type:
rich.panel.Panel
- render_board()¶
Render the chess board with pieces.
- Return type:
rich.panel.Panel
- render_current_move()¶
Render the current move being made.
- Return type:
rich.panel.Panel
Render the footer with controls and status.
- Return type:
rich.panel.Panel
- render_game_info()¶
Render game information and statistics.
- Return type:
rich.panel.Panel
- render_header()¶
Render the header with title and game time.
- Return type:
rich.panel.Panel
- render_move_history()¶
Render the move history.
- Return type:
rich.panel.Panel
- render_player_info(color)¶
Render player information panel.
- Parameters:
color (str)
- Return type:
rich.panel.Panel
- run(agent, delay=0.5)¶
Run the live UI with the chess agent.
- Parameters:
agent (haive.games.chess.agent.ChessAgent) – The chess agent to run
delay (float) – Minimum delay between UI updates (seconds)
- haive.games.chess.ui.main()¶
Run a chess game with the Rich UI.