poker-odds-calculator
Version:
A pre-flop and post-flop odds calculator for Texas Holdem
29 lines (28 loc) • 813 B
TypeScript
/**
* HandRank
*/
import { Card } from './Card.js';
import { CardGroup } from './CardGroup.js';
import { IGame } from './Game.js';
export declare class HandRankAlias {
static HIGH_CARD: string;
static PAIR: string;
static TWO_PAIRS: string;
static TRIPS: string;
static STRAIGHT: string;
static FLUSH: string;
static FULL_HOUSE: string;
static QUADS: string;
static STRAIGHT_FLUSH: string;
}
export declare class HandRank {
protected alias: string;
protected rank: number;
protected highcards: Card[];
protected constructor(rank: number, alias: string, highcards: Card[]);
static evaluate(game: IGame, cardgroup: CardGroup): HandRank;
getHighCards(): Card[];
getRank(): number;
compareTo(handrank: HandRank): number;
toString(): string;
}