Function getNumDiscardedCopiesOfCard

  • Returns how many cards of a specific suit/rank that have been already discarded.

    Parameters

    • deck: readonly CardState[]
    • suitIndex: 0 | 1 | 2 | 3 | 4 | 5
    • rank: 1 | 2 | 3 | 4 | 5 | 7

    Returns number