@hanabi-live/game
    Preparing search index...

    Function getUppercaseSuitAbbreviationsForVariant

    • Suit abbreviations are hard-coded in the "suits.json" file. In some variants, two or more suits can have overlapping letter abbreviations. If this is the case, we dynamically find a new abbreviation by using the left-most unused letter.

      Note that we cannot simply hard-code an alternate abbreviation in the "suits.json" file because there are too many overlapping possibilities.

      Parameters

      • variantName: string
      • suits: readonly Suit[]

      Returns readonly string[]