villainCappedRangeScore
Score how capped a villain range appears on the board.
villainCappedRangeScore(range: SparseRangeSpec | Float64Array, board: CardInput): 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 villainCappedRangeScore when you need to score how capped a villain range appears on the board.
How to use
const poker = require('poker-calculations');
const result = poker.villainCappedRangeScore(1, 1, 7, 5);
console.log(result);