@Cards-TS
    Preparing search index...

    Class TricksController

    Handles state for trick based games

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    controllers: TricksDependencies
    state: TricksState

    Accessors

    Methods

    • Parameters

      • comparator: (current: Card, previous: Card) => boolean

        a function returning true if the current card is better than the previous

      • followsSuit: boolean = true

        if the winner must be of the same suit

      Returns number