votes
    Preparing search index...

    Class Minimax<C>

    Type Parameters

    • C extends string

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    candidates: C[]
    excludeTies: boolean
    minimaxVariant: MinimaxVariant
    isRandom: boolean = false
    needsBallot: boolean = false
    needsMatrix: true
    Variants: typeof MinimaxVariant = MinimaxVariant

    Accessors

    Methods

    • Returns C[][]

    • Result of the vote. The first item lists the winners of the vote.

      For example this ranking means that Bear wins, Sheep is second and Lion third [ [ 'Bear' ], [ 'Sheep' ], [ 'Lion' ] ]

      Returns C[][]

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns MatrixScoreMethod<D>

    • Type Parameters

      • D extends string

      Parameters

      • candidates: D[]

      Returns D[][]