haive.games.fox_and_geese.ui ============================ .. py:module:: haive.games.fox_and_geese.ui .. autoapi-nested-parse:: Rich UI module for Fox and Geese game visualization. This module provides rich console UI components for visualizing the Fox and Geese game. Classes ------- .. autoapisummary:: haive.games.fox_and_geese.ui.FoxAndGeeseUI Module Contents --------------- .. py:class:: FoxAndGeeseUI(console = None) Rich UI for Fox and Geese 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_table(game_state) Create a rich visual representation of the board. :param game_state: Current game state :returns: Rich table 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:: 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 FoxAndGeeseState from various input formats. :param state_data: State data in various formats :returns: FoxAndGeeseState 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