Skip to main content

boardRangeInteractionScore

Score how strongly a range connects with the board.

boardRangeInteractionScore(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 boardRangeInteractionScore when you need to score how strongly a range connects with the board.

How to use

const poker = require('poker-calculations');
const board = ['Qh', 'Jh', '2c'];
const range = new Float64Array(1326);
range.fill(1 / 1326);

const result = poker.boardRangeInteractionScore(board, range, range);
console.log(result);

See also

rangeBoardCoverage · Range equity