Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 04-20-2019, 05:27 AM   #1
t0pb1ll1n
grinder
 
t0pb1ll1n's Avatar
 
Join Date: Oct 2012
Location: London
Posts: 607
Looking for Hand Evaluators (js)

As a side project I'm making a browser-based poker client with a Typescript Node.js backend, and am at the point where I need to start classifying/evaluating hands.

There's a lot of stuff out there, and am looking for recommendations.

Things I value in a library:
- Intuitive API/documentation
- Speed

Have read up a bit and can see the 2p2 hand evaluator has some wrappers in various languages. Here's a javascript one I've found: https://github.com/chenosaurus/poker-evaluator

There are also these npm packages:
https://www.npmjs.com/package/latest-poker-evaluator
https://www.npmjs.com/package/pokersolver

Can anyone recommend one (preferably in JS), or comment on the above ones?
t0pb1ll1n is offline   Reply With Quote
Old 11-28-2019, 02:03 PM   #2
t0pb1ll1n
grinder
 
t0pb1ll1n's Avatar
 
Join Date: Oct 2012
Location: London
Posts: 607
Re: Looking for Hand Evaluators (js)

I ended up using https://github.com/chenosaurus/poker-evaluator, which uses the 2p2 precomputed HandRanks.dat file, so is very performant.


I added typings to DefinitelyTyped to assist anyone else using Typescript
t0pb1ll1n is offline   Reply With Quote
Old 12-04-2019, 03:21 AM   #3
rickroll
oddly catty
 
rickroll's Avatar
 
Join Date: Aug 2011
Location: serene, serene, puissant, puissant
Posts: 7,136
Re: Looking for Hand Evaluators (js)

this looks interesting, will check it out when i have some free time
rickroll is offline   Reply With Quote
Old 12-06-2019, 12:51 AM   #4
PokerHero77
veteran
 
Join Date: Oct 2008
Posts: 2,518
Re: Looking for Hand Evaluators (js)

Depending on how you use it skpe may be faster. If you can cache 5 and 6 card holdings it is definitely faster.

I've seen it available in c and java, not js. So you'd need to port it.
PokerHero77 is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 11:38 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online