Skip to main content

heroBoardConnectivityScore

Score how well hero hole cards connect with the board.

heroBoardConnectivityScore(heroHoleCards: CardInput, 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 heroBoardConnectivityScore when you need to score how well hero hole cards connect 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.heroBoardConnectivityScore(board, range, range);
console.log(result);

See also

rangeBoardCoverage · Range equity