exactHuEquityVsRange
Exact heads-up equity vs a weighted villain range.
exactHuEquityVsRange(heroHoleCards: CardInput, boardCards: CardInput, range: Float64Array | SparseRangeSpec): number
Import
const poker = require('poker-calculations');
When to use
Use when villain combos and weights are known (dense 1326-vector or sparse { indices, weights }). Blocked combos are removed automatically.
How to use
const poker = require('poker-calculations');
const range = { indices: [/* deck ids pairs */], weights: [1, 1] };
const equity = poker.exactHuEquityVsRange(
['Ah', 'Kd'],
['Qh', 'Jc', '2s'],
range,
);