frontend
    Preparing search index...

    Function useFreeCellGame

    • Hook that manages FreeCell game state, source selection, hints, and moves.

      Returns {
          error: string | null;
          exec: (
              ...args: [
                  command: | "reset"
                  | "log"
                  | "hint"
                  | "move"
                  | "giveup"
                  | "autocomplete"
                  | "undo",
                  from?: FreeCellMoveZone,
                  to?: FreeCellMoveZone,
              ],
          ) => Promise<void>;
          handleAutoComplete: () => void;
          handleGiveUp: () => void;
          handleHint: () => Promise<void>;
          handleReset: () => void;
          handleSelectSource: (zone: FreeCellMoveZone) => void;
          handleSelectTarget: (zone: FreeCellMoveZone) => void;
          handleUndo: () => void;
          hint: FreeCellHint | null;
          hintError: string | null;
          isAutoCompleting: boolean;
          loading: boolean;
          retry: () => Promise<void>;
          selectedSource: FreeCellMoveZone | null;
          state: FreeCellResponse | null;
      }