mikomi
v1.1.2
Published
Utilities for calculating probabilities
Downloads
1,047
Maintainers
Readme
mikomi
Utilities for calculating probabilities.
Install
npm install mikomi
Usage
import { potOdds } from "mikomi";
// A call on the river with 8-to-3 pot odds must win at least 27.3 %
// of the time to be profitable.
const percentage = potOdds({ pot: 80, bet: 30 }); // 0.273
// A Flush draw with 9 outs on the flop has 35 % equity
const equityOnFlop = equityFlopToRiver(9); // 0.35
// A Flush draw with 9 outs on the turn has 19.6 % equity
const equityOnTurn = equityTurnToRiver(9); // 0.196