haive.games.single_player.flow_free.agent¶
Flow Free game agent implementation.
This module implements the agent for the Flow Free puzzle game, handling move generation, analysis, and game flow.
Classes¶
Agent for playing Flow Free puzzle game. |
Module Contents¶
- class haive.games.single_player.flow_free.agent.FlowFreeAgent(config=FlowFreeConfig())[source]¶
Bases:
haive.games.single_player.base.SinglePlayerGameAgent
Agent for playing Flow Free puzzle game.
Initialize the Flow Free agent.
- Parameters:
config (haive.games.single_player.flow_free.config.FlowFreeConfig) – Configuration for the agent.
- extract_move(response)[source]¶
Extract a move from the engine response.
- Parameters:
response (Any) – Response from the engine.
- Returns:
Extracted FlowFreeMove.
- Return type:
- prepare_analysis_context(state)[source]¶
Prepare context for position analysis.
- Parameters:
state (haive.games.single_player.flow_free.state.FlowFreeState) – Current game state.
- Returns:
Context for the analysis engine.
- Return type:
- prepare_move_context(state)[source]¶
Prepare context for move generation.
- Parameters:
state (haive.games.single_player.flow_free.state.FlowFreeState) – Current game state.
- Returns:
Context for the move generation engine.
- Return type: