@idealic/poker-engine
Version:
Professional poker game engine and hand evaluator with built-in iterator utilities
18 lines • 589 B
TypeScript
import type { Card, Game } from '../types';
/**
* Compares two poker hands and returns:
* -1 if hand1 is worse than hand2
* 0 if hands are equal
* 1 if hand1 is better than hand2
*/
export declare function compareHands(hand1: Card[], hand2: Card[]): number;
/**
* Helper: completeHand
* Handles hand completion by determining winners, distributing pot and resetting state
*/
export declare function completeHand(table: Game): void;
/**
* Resets player states for a new street
*/
export declare function resetForNewStreet(table: Game): void;
//# sourceMappingURL=showdown.d.ts.map