boardWetnessScore
Return a single wetness score for the current board.
boardWetnessScore(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 boardWetnessScore when you need to return a single wetness score for the current 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.boardWetnessScore(board, range, range);
console.log(result);