3.0.8 • Published 5 years ago
hutchison v3.0.8
hutchison
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: ?}