UNPKG

croupier

Version:

A library written in Typescript to create and handle a deck of playing cards

40 lines (39 loc) 618 B
import { default as Card } from './Card'; interface DeckOptions { seed?: number; shuffle?: boolean; jokers?: boolean; } /** * @classdesc * A Deck represents a deck of cards. * @class Deck */ export default class Deck { private cards; /** * * @param options */ constructor(options?: DeckOptions); /** * */ get Cards(): Card[]; /** * */ get Count(): number; /** * * @param amount * @returns */ take(amount: number): Card[]; /** * * @param seed */ shuffle(seed?: number): void; } export {};