cardation
Version:
fundation of card games, card model
19 lines (18 loc) • 535 B
TypeScript
import Card from '../card/Card';
import SuitCard from '../card/SuitCard';
import Suit from '../suit/Suit';
import IPattern from './IPattern';
declare class Flush implements IPattern {
/**
* Test if the cards form a flush.
* @param {Card[]}cards cards to be tested
* @returns {boolean} true if the cards form a flush
*/
static isFlush(cards: SuitCard[]): boolean;
private _suit;
private _cards;
constructor(cards: SuitCard[]);
getCards(): Card[];
getSuit(): Suit;
}
export default Flush;