UNPKG

poker-variants-odds-calculator

Version:

Fastest and most accurate node module for calculating odds of poker games Texas Hold'em, Texas Shortdeck/Sixplus, Omaha, 5-Card Omaha and 6-Card.

29 lines (28 loc) 791 B
import Table from "./Table"; import Card from "./Card"; import Player from "./Player"; import { Games as iGames, Nullable } from "./Interfaces"; export default class Game { private game; private Table; private trips_beats_straight; constructor(game: iGames, Table: Table); isTexasHoldem(): boolean; isSixPlusTexasHoldem(): boolean; isOmaha(): boolean; isOmaha5Cards(): boolean; isOmaha6Cards(): boolean; getGame(): iGames; tripsBeatsStraight(): this; doesTripsBeatStraight(): boolean; getResult(players: Array<Player>, board: Array<Card>): { points: number; rank: { rank: string; str: string; }; hand: Nullable<Card[]>; cards: Card[]; }[]; private getHandStrentgh; }