chubukovMaxSymmetricJamStackFromHandBinarySearch
Same integer search as chubukovMaxSymmetricJamStackBinarySearch; maxStackChips read as int32 in native.
chubukovMaxSymmetricJamStackFromHandBinarySearch(heroHoleCards: CardInput, boardCards: CardInput, deadMoneyChips: number, maxStackChips: number): number
CardInput is string[] or Uint8Array of deck ids 0..51. See Card notation.
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
Identical workflow to chubukovMaxSymmetricJamStackBinarySearch but maxStackChips is coerced with int32 semantics in native code—use when your cap must match int32 ranges or you need parity with the alternate binding path.
How to use
const hero = ['Qh', 'Qd'];
const board = ['3c', '8s', 'Jh', '2d']; // turn
const dead = 200;
const maxJam = poker.chubukovMaxSymmetricJamStackFromHandBinarySearch(
hero,
board,
dead,
2147483647
);
console.log(maxJam);
// Compare with double-clamped search for normal caps
console.log(
poker.chubukovMaxSymmetricJamStackBinarySearch(hero, board, dead, 20000)
);
See also
chubukovMaxSymmetricJamStackBinarySearch · chubukovMaxSymmetricJamStackChipsBinarySearch