Skip to content

Instantly share code, notes, and snippets.

@dadayada
dadayada / hand.ts
Last active January 27, 2024 03:05 — forked from xanf/.gitignore
import {
CardGroup,
OddsCalculator,
type Card as PokerToolsCard,
} from 'poker-tools';
const eqSet = (xs: Set<any>, ys: Set<any>) =>
xs.size === ys.size && [...xs].every(x => ys.has(x));
const getNextIndex = (arr: Array<any>, index: number) => {