@hanabi-live/game
    Preparing search index...

    Interface Variant

    interface Variant {
        alternatingClues: boolean;
        chimneys: boolean;
        clueColors: readonly Color[];
        clueRanks: readonly (1 | 2 | 3 | 4 | 5)[];
        clueStarved: boolean;
        colorCluesTouchNothing: boolean;
        cowAndPig: boolean;
        criticalRank: 2 | 5 | 1 | 7 | 3 | 4 | undefined;
        duck: boolean;
        funnels: boolean;
        hasInverted: boolean;
        id: number & $brand<"VariantId">;
        maxScore: number;
        name: string;
        oddsAndEvens: boolean;
        pips: readonly Pip[];
        rankCluesTouchNothing: boolean;
        ranks: readonly (1 | 2 | 3 | 4 | 5 | 7)[];
        recipe: string;
        scarceOnes: boolean;
        specialRanks: readonly CatalogFlags<
            Readonly<
                {
                    allClueColors?: true;
                    allClueRanks?: true;
                    deceptive?: true;
                    noClueColors?: true;
                    noClueRanks?: true;
                    rank: 1
                    | 2
                    | 3
                    | 4
                    | 5
                    | 7;
                },
            >,
        >[];
        stackSize: 1
        | 2
        | 3
        | 4
        | 5;
        sudoku: boolean;
        suits: readonly Suit[];
        synesthesia: boolean;
        throwItInAHole: boolean;
        upOrDown: boolean;
    }

    Hierarchy

    • VariantJsonModified
      • Variant
    Index
    alternatingClues: boolean = ...
    chimneys: boolean = ...
    clueColors: readonly Color[]
    clueRanks: readonly (1 | 2 | 3 | 4 | 5)[] = ...

    The ranks that players can clue. When omitted, 1 through 5.

    clueStarved: boolean = ...
    colorCluesTouchNothing: boolean = ...
    cowAndPig: boolean = ...
    criticalRank: 2 | 5 | 1 | 7 | 3 | 4 | undefined
    duck: boolean = ...
    funnels: boolean = ...
    hasInverted: boolean
    id: number & $brand<"VariantId"> = variantIdSchema

    A number from 0 to N. For example, "No Variant" is variant 0, "6 Suits" is variant 1, and so on. The database and seeds name a variant by this number.

    maxScore: number
    name: string = ...
    oddsAndEvens: boolean = ...
    pips: readonly Pip[]

    Some suits have "auto" pips, meaning that they must be computed per-variant.

    rankCluesTouchNothing: boolean = ...
    ranks: readonly (1 | 2 | 3 | 4 | 5 | 7)[]
    recipe: string = ...

    The variant's suits and modifiers, from which the engine builds its rules. Each variant has exactly one recipe. For example, "No Variant" is r-y-g-b-p. See recipe.rs for the grammar.

    scarceOnes: boolean = ...
    specialRanks: readonly CatalogFlags<
        Readonly<
            {
                allClueColors?: true;
                allClueRanks?: true;
                deceptive?: true;
                noClueColors?: true;
                noClueRanks?: true;
                rank: 1
                | 2
                | 3
                | 4
                | 5
                | 7;
            },
        >,
    >[]
    stackSize: 1 | 2 | 3 | 4 | 5
    sudoku: boolean = ...
    suits: readonly Suit[]
    synesthesia: boolean = ...
    throwItInAHole: boolean = ...
    upOrDown: boolean = ...