haive.games.clue.state_manager ============================== .. py:module:: haive.games.clue.state_manager .. autoapi-nested-parse:: State manager for the Clue game. This module defines the state management for the Clue game, providing methods for game logic and state transitions. Classes ------- .. autoapisummary:: haive.games.clue.state_manager.ClueStateManager Module Contents --------------- .. py:class:: ClueStateManager Bases: :py:obj:`haive.games.framework.base.state_manager.GameStateManager`\ [\ :py:obj:`haive.games.clue.state.ClueState`\ ] Manager for Clue game state. .. py:method:: add_analysis(state, player, hypothesis) :classmethod: Add a hypothesis to the state. :param state: Current game state :param player: Player performing the analysis :param hypothesis: Hypothesis details :returns: Updated state with added hypothesis .. py:method:: apply_move(state, move) :classmethod: Apply a guess to the current state. :param state: Current game state :param move: The guess to apply :returns: Updated game state .. py:method:: check_game_status(state) :classmethod: Check and potentially update game status. :param state: Current game state :returns: Updated game state .. py:method:: get_legal_moves(state) :classmethod: Get all legal moves for the current state. :param state: The current game state :returns: List of possible legal guesses .. py:method:: get_possible_solutions(state) :classmethod: Get possible solutions based on the current game state. :param state: Current game state :returns: Set of possible solutions as (suspect, weapon, room) tuples .. py:method:: get_winner(state) :classmethod: Get the winner of the game. :param state: Current game state :returns: Winner of the game, or None if ongoing .. py:method:: initialize(**kwargs) :classmethod: Initialize a new Clue game. :param \*\*kwargs: Keyword arguments for game initialization :returns: A new Clue game state :rtype: ClueState