UNPKG

cardation

Version:

fundation of card games, card model

22 lines (21 loc) 607 B
import Suit from '../suit/Suit'; import Card from '../card/Card'; /** * Get the colored graph of a card. * @param card A SuitCard instance * @returns Colored string which can show in console */ declare const getGraph: (card: Card) => string; declare const short2entity_map: { [key: string]: Suit; }; declare const short2char_map: { [key: string]: string; }; /** * Parse a card from a string id. * @param id the id of a card * @returns the card parsed from the id */ declare function parseCardFromId(id: string): Card; export { getGraph, short2entity_map, short2char_map, parseCardFromId, };