UNPKG

@vlad-yakovlev/poker

Version:
17 lines (16 loc) 491 B
import { COMBINATION_LEVEL } from '../types/card.js'; import { Subset } from './Subset.js'; export declare class Combination { level: COMBINATION_LEVEL; subset: Subset; constructor(level: COMBINATION_LEVEL, subset: Subset); /** * Weight of combination. Used for comparing combinations */ get weight(): number; /** * Get best combination from given cards */ static getBest(cards: number[]): Combination | undefined; private static build; }