hutchison

3.0.8 • Public • Published

hutchison

NPM version Downloads

Hutchison poker hand rankings, written in JavaScript.

Usage

Install the library with npm install hutchison

import {texasHoldem, omahaHoldem} from 'hutchison';
 
console.log(texasHoldem({hand: ['Ah', 'Ad']})); // <- {"points":42, percentile: 1}
console.log(texasHoldem({hand: ['7h', '2d']})); // <- {"points":9, percentile: 0.04524886877828054}
 
console.log(omahaHoldem({hand: ['As', 'Ks', 'Ah', 'Kh'], players: 6})); // <- {"ev":?, percentile: ?}
console.log(omahaHoldem({hand: ['As', 'Ah', '7c', '2d'], players: 2})); // <- {"ev":?, percentile: ?}

Dependencies (1)

Dev Dependencies (3)

Package Sidebar

Install

npm i hutchison

Weekly Downloads

9

Version

3.0.8

License

MIT

Unpacked Size

11.5 MB

Total Files

18

Last publish

Collaborators

  • dleshem