frontend
    Preparing search index...

    Function useGoFishGame

    • Hook that manages Go Fish game state and player actions.

      Returns {
          error: string | null;
          exec: (
              ...args: [
                  command: "reset"
                  | "log"
                  | "ask",
                  targetIdx?: number,
                  rank?: number,
                  config?: GoFishConfigInput,
              ],
          ) => Promise<void>;
          goFishConfig: GoFishConfig;
          handleAsk: () => void;
          handleConfigChange: (key: "cpuDifficulty", value: string) => void;
          handleSelectRank: (rank: number) => void;
          handleSelectTarget: (idx: number) => void;
          loading: boolean;
          retry: () => Promise<void>;
          selectedRank: number | null;
          selectedTarget: number | null;
          state: GoFishResponse | null;
      }