haive.games.dominoes.ui ======================= .. py:module:: haive.games.dominoes.ui .. autoapi-nested-parse:: Rich UI module for Dominoes game visualization. This module provides rich console UI components for visualizing the Dominoes game. Classes ------- .. autoapisummary:: haive.games.dominoes.ui.DominoesUI Module Contents --------------- .. py:class:: DominoesUI(console = None) Rich UI for Dominoes game visualization. Initialize the UI. :param console: Optional Rich console instance .. py:method:: create_analysis_panel(game_state) Create a panel showing the latest analysis. :param game_state: Current game state :returns: Rich panel with analysis info .. py:method:: create_board_panel(game_state) Create a visual representation of the dominoes board. :param game_state: Current game state :returns: Rich panel representing the board .. py:method:: create_game_info_panel(game_state) Create a panel with game information. :param game_state: Current game state :returns: Rich panel with game info .. py:method:: create_last_move_panel(game_state) Create a panel showing the last move. :param game_state: Current game state :returns: Rich panel with last move info .. py:method:: create_layout(game_state) Create the complete rich UI layout. :param game_state: Current game state :returns: Complete rich layout .. py:method:: create_player_hand_panel(game_state, player) Create a panel showing a player's hand. :param game_state: Current game state :param player: Player whose hand to display :returns: Rich panel with player's hand .. py:method:: display_final_results(final_state) Display final game results. :param final_state: Final game state .. py:method:: display_state(state_data) Display the game state using rich UI. :param state_data: State data in various formats :returns: True if display was successful, False otherwise .. py:method:: display_welcome() Display welcome message. .. py:method:: extract_game_state(state_data) Extract DominoesState from various input formats. :param state_data: State data in various formats :returns: DominoesState instance or None if extraction fails .. py:method:: print_debug_info(state_data, context = '') Print debug information about the state. :param state_data: State data to debug :param context: Context string for debugging