frontend
    Preparing search index...

    Function useGolfGame

    • Hook that manages Golf Solitaire game state, hints, and card removal actions.

      Returns {
          error: string | null;
          exec: (
              ...args: [
                  command: | "reset"
                  | "log"
                  | "draw"
                  | "hint"
                  | "giveup"
                  | "undo"
                  | "remove",
                  col?: number,
              ],
          ) => Promise<void>;
          handleDraw: () => void;
          handleGiveUp: () => void;
          handleHint: () => Promise<void>;
          handleReset: () => void;
          handleSelectCard: (col: number) => void;
          handleUndo: () => void;
          hint: GolfHint | null;
          hintError: string | null;
          loading: boolean;
          retry: () => Promise<void>;
          state: GolfResponse | null;
      }