frontend
    Preparing search index...

    Function useGinRummyGame

    • Hook that manages Gin Rummy game state and player actions.

      Returns {
          clearSelection: () => void;
          error: string | null;
          exec: (
              ...args: [
                  command: | "reset"
                  | "log"
                  | "discard"
                  | "nextround"
                  | "drawstock"
                  | "drawdiscard"
                  | "knock"
                  | "layoff",
                  cardIndex?: number,
                  config?: GinRummyConfigInput,
                  cardIndices?: number[],
              ],
          ) => Promise<void>;
          ginRummyConfig: GinRummyConfig;
          handleConfigChange: (
              key: NumberKeys<GinRummyConfig>,
              value: string,
          ) => void;
          handleDiscard: () => void;
          handleDrawDiscard: () => void;
          handleDrawStock: () => void;
          handleKnock: () => void;
          handleLayoff: () => void;
          handleNextRound: () => void;
          handleSkipLayoff: () => void;
          loading: boolean;
          retry: () => Promise<void>;
          selectedCardIndices: number[];
          state: GinRummyResponse | null;
          toggleCard: (idx: number) => void;
      }