Function discard

  • Helper functions to build a ActionDiscard with a compact syntax. For use in tests.

    Parameters

    • playerIndex: PlayerIndex
    • order: number
    • suitIndex: -1 | 0 | 1 | 2 | 3 | 4 | 5
    • rank: -1 | 1 | 2 | 3 | 4 | 5 | 7
    • failed: boolean

    Returns ActionDiscard