haive.games.single_player.flow_free.agent ========================================= .. py:module:: haive.games.single_player.flow_free.agent .. autoapi-nested-parse:: Flow Free game agent implementation. This module implements the agent for the Flow Free puzzle game, handling move generation, analysis, and game flow. Classes ------- .. autoapisummary:: haive.games.single_player.flow_free.agent.FlowFreeAgent Module Contents --------------- .. py:class:: FlowFreeAgent(config = FlowFreeConfig()) Bases: :py:obj:`haive.games.single_player.base.SinglePlayerGameAgent` Agent for playing Flow Free puzzle game. Initialize the Flow Free agent. :param config: Configuration for the agent. .. py:method:: extract_move(response) Extract a move from the engine response. :param response: Response from the engine. :returns: Extracted FlowFreeMove. .. py:method:: initialize_game(state) Initialize a new Flow Free game. :param state: Initial state. :returns: Command with the initialized game state. .. py:method:: prepare_analysis_context(state) Prepare context for position analysis. :param state: Current game state. :returns: Context for the analysis engine. .. py:method:: prepare_move_context(state) Prepare context for move generation. :param state: Current game state. :returns: Context for the move generation engine. .. py:method:: run_game(debug = False) Run a complete Flow Free game. :param debug: Whether to show debug information. :returns: Final game state. .. py:method:: visualize_state(state) Visualize the current game state. :param state: Current game state.