haive.games.tic_tac_toe.ui ========================== .. py:module:: haive.games.tic_tac_toe.ui .. autoapi-nested-parse:: Rich UI Game Runner for Tic Tac Toe. This module provides a beautiful, interactive UI for running Tic Tac Toe games using the Rich library for enhanced terminal displays. Classes ------- .. autoapisummary:: haive.games.tic_tac_toe.ui.RichTicTacToeRunner Module Contents --------------- .. py:class:: RichTicTacToeRunner(agent) Rich UI runner for Tic Tac Toe games. Initialize the Rich UI runner. :param agent: The TicTacToe agent to run .. py:method:: create_analysis_panel(state) Create a panel showing the latest analysis. :param state: Current game state :returns: Rich Panel with analysis info, or None if no analysis .. py:method:: create_board_panel(state) Create a rich panel displaying the game board. :param state: Current game state :returns: Rich Panel with the game board .. py:method:: create_game_info_panel(state) Create a panel with game information. :param state: Current game state :returns: Rich Panel with game info .. py:method:: create_layout(state) Create the main layout for the game display. :param state: Current game state :returns: Rich Layout object .. py:method:: run_game(show_thinking = True, step_delay = 1.0, debug = False) Run the Tic Tac Toe game with Rich UI. :param show_thinking: Whether to show thinking animations :param step_delay: Delay between moves in seconds :param debug: Whether to show debug information :returns: Final game state .. py:method:: show_game_summary(final_state) Show a summary of the completed game. :param final_state: The final state of the game .. py:method:: show_thinking_animation(player, duration = 2.0) Show a thinking animation while AI is processing. :param player: The player who is thinking :param duration: How long to show the animation