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

    Interface TrailSettings

    How a trail is laid.

    interface TrailSettings {
        cards: readonly CardSettings[];
        course: Partial<TrailCourseSettings>;
        dice: number;
        level?: Level;
        maxSlides: number;
        shortcuts: Readonly<Record<number, number>>;
        spaces: number;
        traps: Readonly<Record<number, TrailTrap>>;
    }
    Index

    Properties

    cards: readonly CardSettings[]

    The cards asked, cycled, one per turn

    course: Partial<TrailCourseSettings>

    How the river winds and where its shortcuts fall

    dice: number

    The most a right answer moves: the die's sides (default: 3)

    level?: Level

    A level for every card that has none of its own — and, unless these settings say otherwise, the board of that level: its length, die, vines, whirlpools and traps (trailLevelSettings)

    maxSlides: number

    The most times a game can slide back; after that a slide's space is just a space (default: 3)

    shortcuts: Readonly<Record<number, number>>

    Shortcuts fixed by hand; left empty, the course places its own vines and whirlpools

    spaces: number

    Spaces from start to finish (default: 20)

    traps: Readonly<Record<number, TrailTrap>>

    Traps fixed by hand; left empty, the course places its own (course.traps of them)