propokertools

1.0.0 • Public • Published

propokertools

NPM version Downloads

ProPokerTools hand rankings calculator for various poker games, written in JavaScript.

Usage

Install the library with npm install propokertools

import {texasHoldem6, texasHoldem10, omahaHoldem6, omahaHoldem10} from 'propokertools';
 
console.log(texasHoldem6({hand: ['Ah', 'Ad']})); // <- {percentile: 1}
console.log(texasHoldem6({hand: ['7h', '2d']})); // <- {percentile: 0.01809954751131222}
 
console.log(texasHoldem10({hand: ['Ah', 'Ad']})); // <- {percentile: 1}
console.log(texasHoldem10({hand: ['7h', '2d']})); // <- {percentile: 0.00904977375565611}
 
console.log(omahaHoldem6({hand: ['As', 'Ks', 'Ah', 'Kh']})); // <- {percentile: 0.9999113491550466}
console.log(omahaHoldem6({hand: ['As', 'Ah', '7c', '2d']})); // <- {percentile: 0.9578908486471511}
 
console.log(omahaHoldem10({hand: ['As', 'Ks', 'Ah', 'Kh']})); // <- {percentile: 0.99986702373257}
console.log(omahaHoldem10({hand: ['As', 'Ah', '7c', '2d']})); // <- {percentile: 0.9675316280358297}

Package Sidebar

Install

npm i propokertools

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

2.27 MB

Total Files

22

Last publish

Collaborators

  • dleshem