Skip to main content

boardStraightPressure

Measure rank connectedness and straight pressure on a board.

boardStraightPressure(board: CardInput, deadCards?: 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 boardStraightPressure when you need to measure rank connectedness and straight pressure on a 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.boardStraightPressure(board, range, range);
console.log(result);

See also

rangeBoardCoverage · Range equity