Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Suit

The main class for representing a suit of cards

Hierarchy

  • Suit

Index

Constructors

Properties

Accessors

Methods

Constructors

  • new Suit(name: string): Suit

Properties

name: string

Accessors

  • get unicode(): string
  • The unicode character that represents this particular suit

    Returns string

  • get unicodeCards(): Map<Rank, string>
  • A map of ranks to the appropriate unicode character for that card

    Returns Map<Rank, string>

Methods

  • toString(): string
  • Returns a human-readable string representation of the suit object

    eg. "<Suit name=spades>"

    Returns string

Generated using TypeDoc