cardation
Version:
fundation of card games, card model
15 lines (14 loc) • 409 B
TypeScript
import Card from '../card/Card';
import IPattern from './IPattern';
declare class Pair implements IPattern {
/**
* Test if the cards form a pair.
* @param {Card[]} cards cards to be tested
* @returns {boolean} true if the cards form a pair
*/
static isPair(cards: Card[]): boolean;
private _cards;
constructor(cards: Card[]);
getCards(): Card[];
}
export default Pair;