Class: Card

Uno# Card


new Card(face, color)

Class that stores the current information about a particular card. All cards with the same color and face value are represented here using the `count` attribute.
Parameters:
Name Type Description
face CardFace The face value or type of card this is.
color Color The color of this card.
Source:

Members


color :Uno.Color

The color of this card.
Type:
  • Uno.Color
Source:

face :Uno.CardFace

The face value of this card.
Type:
  • Uno.CardFace
Source:

<private, inner, nullable> myName :string

The name of this card retreivable with `toString()`. Null until first `toString()` call.
Type:
  • string
Source:

Methods


toString()

Stringifies the face and colors to their key names.
Source:
Returns:
This card as a string.
Type
string