frontend
    Preparing search index...

    Function useTriPeaksGame

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

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