Skip to main content

Card

getColor​

Get the color of a card

import { getColor } from "toranpu";

getColor(card)

Arguments​

  • card (Type): The card to get the color of

Returns​

(Enum) The color of a card


getRank​

Get the rank of a card

import { getRank } from "toranpu";

getRank(card)

Arguments​

  • card (Type): The card to get the rank of

Returns​

(Enum) The rank of a card


getSuit​

Get the suit of a card

import { getSuit } from "toranpu";

getSuit(card)

Arguments​

  • card (Type): The card to get the suit of

Returns​

(Enum) The suit of a card