bluffCatchDecisionScore
Score a bluff-catch spot against pot odds and range context.
bluffCatchDecisionScore(heroHoleCards: CardInput, boardCards: CardInput, villainRange: SparseRangeSpec | Float64Array, pot: number, toCall: number): number
See Packed card input and SparseRangeSpec where those inputs apply.
Import
const poker = require('poker-calculations');
ESM (Node):
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const poker = require('poker-calculations');
When to use
Use bluffCatchDecisionScore when you need to score a bluff-catch spot against pot odds and range context.
How to use
const poker = require('poker-calculations');
const range = new Float64Array(1326);
range.fill(1 / 1326);
const result = poker.bluffCatchDecisionScore(range, range, ['Qh', 'Jh', '2c'], 100, [33, 66, 100]);
console.log(result);