Hiyve Components - v1.0.0
    Preparing search index...

    Function gameResult

    • A result ready to store: the deck kept small, how it went, and its score, stamped with the game, the mode and the time.

      Parameters

      • state: DeckState
      • record: DeckRecord
      • details: {
            durationMs?: number;
            extra?: Record<string, unknown>;
            game: string;
            id?: string;
            mode: PlayMode;
            playedAt?: string;
            player?: { id: string; name?: string };
        }

      Returns GameResult