Skip to main content

nlMinimumRaiseToTotal

NLHE toy rule: minimum total wager after a raise is currentMaxWager + max(lastRaiseIncrement, bigBlind).

nlMinimumRaiseToTotal(currentMaxWager: number, lastRaiseIncrement: number, bigBlind: number): number

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 in trainers or validators that need the next legal minimum raise-to total—not a full betting-tree engine, but the standard “increment at least the BB” NL pattern.

How to use

console.log(poker.nlMinimumRaiseToTotal(2, 2, 2)); // 4
console.log(poker.nlMinimumRaiseToTotal(10, 8, 2)); // 18 — max(8, 2) added to 10

See also

betAsPotFraction