Re:Show HN: A simple Poker API to calculate the winning hand/s
by tantalor on Sunday July 05, 2020 @05:38PM
(#23742292)
Calculating odds would be more interesting
[ Parent
| on HN ]
Re:Show HN: A simple Poker API to calculate the winning hand/s
by Bnshsysjab on Sunday July 05, 2020 @06:53PM
(#23742825)
That’s relatively straight forward by calculating the entire game tree for pretty much any street after the flop (52-7)*(52-8) combos.
The flop requires slightly more power to execute, but many tools do this in a small amount of time so I guess it’s feasible.
Re:Show HN: A simple Poker API to calculate the winning hand/s
by ngokevin on Monday July 06, 2020 @12:38AM
(#23744741)
Did a Node library for that once...ranges, odds, hand evaluation, supports the poker hand syntaxes (e.g., QhQs, 99+, AQs+). https://github.com/ngokevin/pokery
Re:Show HN: A simple Poker API to calculate the winning hand/s
by abeiz on Sunday July 05, 2020 @09:14PM
(#23743747)
Here's something you can use to calculate odds vs a range of hands. https://chriszieba.com/2017/11/26/holdem
Re:Show HN: A simple Poker API to calculate the winning hand/s
by 40four on Sunday July 05, 2020 @09:03PM
(#23743701)
I was also expecting to see probabilities here. Does anyone know of any other similar software that does do probabilities?
Re:Show HN: A simple Poker API to calculate the winning hand/s
by samdwilson on Sunday July 05, 2020 @06:27PM
(#23742651)
I agree. Not sure how this helps improve poker play.
Re:Show HN: A simple Poker API to calculate the winning hand/s
by gexla on Monday July 06, 2020 @01:20AM
(#23744949)
It doesn't. Nothing does. Good poker players should have no problem doing all this in their heads. The tooling which does help is hand analysis and replay. I haven't kept up, but there used to be tools while playing online poker which would track your play and the play of your opponents. Then I believe there were databases where you could upload that information so that you could study the play of regular opponents. Most helpful was looking at your own play though.
Re:Show HN: A simple Poker API to calculate the winning hand/s
by Bnshsysjab on Sunday July 05, 2020 @06:54PM
(#23742834)
I doubt it’s supposed to, it’s to calculate who wins when writing your own poker implementation. I am not the author, but calculating the winner is non trivial.
Re:Show HN: A simple Poker API to calculate the winning hand/s
by exdsq on Sunday July 05, 2020 @08:23PM
(#23743477)
Is it not? The win criteria is well specified so just iterate downwards from the highest priority win until you find a match?
Re:Show HN: A simple Poker API to calculate the winning hand/s
by Bnshsysjab on Sunday July 05, 2020 @09:09PM
(#23743724)
Sure, but that gets complicated when comparing two matching hands (flush vs flush, 2 pair vs 2pair). It’s more than a 50 line problem to solve.
Re:Show HN: A simple Poker API to calculate the winning hand/s
by exdsq on Monday July 06, 2020 @03:34AM
(#23745562)
Okay fair it’s more than 50 lines, I guess my definition of non-trivial is something you can’t quickly think of a design for. I’ll try it later and see if there’s some gotchas I can’t think of :)
Re:Show HN: A simple Poker API to calculate the winning hand/s
by 40four on Sunday July 05, 2020 @10:01PM
(#23743988)
I had the same initial reaction as the other person. Should be easy right? I think you’re right though, there are probably many more steps to getting this right than it seems on the surface.
I kind of want to take your 50 line challenge however :) I always loved playing poker, might be a fun exercise.