cardplayer-odds-calculator
JavaScript client for Card Player magazine's fast poker odds calculator, which by itself wraps pokenum.
Usage
Install the library with npm install cardplayer-odds-calculator
; const oddsCalculator = ; // Example 1: Barry Greenstein vs Tom Dwan (https://www.youtube.com/watch?v=OColG3ceE_Q)const odds1 = await oddsCalculator;console;//// [ { win: 288, lose: 307, tie: 0, ev: 0.48 },// { win: 307, lose: 288, tie: 0, ev: 0.52 } ] // Example 2: Patrick Antonius vs Viktor Blom (https://www.youtube.com/watch?v=8en6Jas6bZw)const odds2 = await oddsCalculator;console;//// [ { win: 448, lose: 372, tie: 0, ev: 0.55 },// { win: 372, lose: 448, tie: 0, ev: 0.45 } ]