UNPKG

@idealic/poker-engine

Version:

Professional poker game engine and hand evaluator with built-in iterator utilities

17 lines 743 B
import type { Hand, Game as GameType, Variant } from '../types'; /** * Creates a new table state from a game */ export declare function createTable(hand: Hand, actions?: string[]): GameType; /** * Determines if we're in showdown */ export declare function isShowdown(game: GameType): boolean; export declare function needsBlinds(variant: Variant): boolean; /** * Creates a censored version of the table for testing purposes. * This function hides cards that were not shown during the hand. * It's useful for testing that players can only see the cards they're supposed to see. */ export declare function createCensoredTable(hand: Hand, actions?: string[], playerName?: string | undefined): GameType; //# sourceMappingURL=table.d.ts.map