card-factory
Version:
A comprehensive library for card manipulation
15 lines • 480 B
TypeScript
import Card from "../card/card";
/**
* The cards in a Pile are a REFERENCE to the cards in the deck
*/
export default class Pile<T extends Card> {
private _cards;
name: string;
constructor(name: string, cards?: T[]);
get cards(): T[];
private _getCardIndex;
receiveCard: (cards: T | T[], conditions?: boolean) => boolean;
passCard: (target: Pile<T>, card?: T, rules?: boolean) => boolean;
shuffle: () => void;
}
//# sourceMappingURL=pile.d.ts.map