frontend
    Preparing search index...

    Function usePokerGame

    • Hook that manages Poker game state, card exchange, and odds calculation.

      Returns {
          canExchange: boolean;
          clearSelection: () => void;
          error: string | null;
          exec: (
              ...args: [
                  command: | "reset"
                  | "stand"
                  | "bet"
                  | "exchange"
                  | "fold"
                  | "check"
                  | "call"
                  | "raise"
                  | "allin"
                  | "odds",
                  indices?: number[],
                  amount?: number,
                  config?: PokerConfigInput,
                  humanPlayMs?: number,
                  profile?: unknown,
              ],
          ) => Promise<void>;
          loading: boolean;
          odds: PokerOdds[] | null;
          retry: () => Promise<void>;
          selected: number[];
          state: PokerResponse | null;
          toggleCard: (idx: number) => void;
      }