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

    Interface VariantJson

    A variant's rules, as the engine makes them from its recipe. This is similar to Variant, but it only has primitive types. Generated from the server's catalog contract.

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

    Hierarchy

    Index
    alternatingClues?: true = ...
    chimneys?: true = ...
    clueColors?: readonly string[] = ...

    The colors that players can clue. When omitted, the suits' clue colors.

    clueRanks?: readonly (1 | 2 | 3 | 4 | 5)[] = ...

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

    clueStarved?: true = ...
    colorCluesTouchNothing?: true = ...
    cowAndPig?: true = ...
    criticalRanks?: readonly (1 | 2 | 3 | 4 | 5 | 7)[] = ...

    The ranks that have one copy in each suit, in increasing order.

    duck?: true = ...
    funnels?: true = ...
    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.

    name: string = ...
    oddsAndEvens?: true = ...
    rankCluesTouchNothing?: true = ...
    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?: true = ...
    specialRanks?: readonly Readonly<
        {
            allClueColors?: true;
            allClueRanks?: true;
            deceptive?: true;
            noClueColors?: true;
            noClueRanks?: true;
            rank: 1
            | 2
            | 3
            | 4
            | 5
            | 7;
        },
    >[] = ...

    The ranks that clues touch in a special way, in increasing order of rank. A rank has at most one entry.

    stackSize?: 2 | 5 | 1 | 3 | 4 = ...

    The number of cards in each stack. When omitted, 5.

    sudoku?: true = ...
    suits: readonly string[] = ...

    Suit names, which may end in " Reversed".

    synesthesia?: true = ...
    throwItInAHole?: true = ...
    upOrDown?: true = ...