card-games-typescript
Version:
Card deck and high or low game library built with TypeScript
21 lines (18 loc) • 465 B
TypeScript
import { Card } from "../../Card";
/**
* Class that defines a "Hand" of cards in a Higher/Lower game.
Constructor accepts an array of cards
Exports methods:
* valueHand(),
* toString(),
* numberOfCards(),
* valueCardsArray()
*/
export declare class HandHol {
cards?: Card[];
constructor(cards?: Card[]);
get numberOfCards(): number;
get valueCardsArray(): number[];
get valueHand(): number;
toString(): string;
}