cookpete / poker-odds Goto Github PK
View Code? Open in Web Editor NEWA lightweight command line tool for calculating poker hand probabilities
License: MIT License
A lightweight command line tool for calculating poker hand probabilities
License: MIT License
./node_modules/.bin/poker-odds AsTh .... --board AhKdJc --iterations 99999
board
Ah Kd Jc
hand win tie
As Th 83.3% 5.8%
.. .. 10.8% 5.8%
1081 iterations in 43ms
1081 iterations always
Any chance you include the short deck variant (6-A and flush beats a full house)? Would really appreciate it!
Thank You for the GREAT job, You have done on this tool.
My question is: having possibilities of high card, one pair... and other outcomes for each hand, how can I calculate the possibility of outcome for entire table, for example calculate the possibility of the winning combination on table for flush, one pair and others ?
"I mean for example 20% that the winning combination will be two pair"
I hope I could explain my question :)
and thanks again for your job.
cookpete/poker-odds comes up with an easy cli tool, but the results aren't reliable when used with random cards (....).
For example the result for Kd 8d
with 100% win ratio can not be right. This hand does loose to a lot of possible hands (e. g. pocket Aces, 2s9d, etc).
poker-odds .... Kd8d -b 2d9s4hKsJh -e
board
2d 9s 4h Ks Jh
hand win
.. .. ·
Kd 8d 100.0%
1 iterations in 1ms
As an alternative emileindik/poker-odds-machine looks promising.
Hello! What is your algorithm based on? Does it only work with Texas Hold'em or can your code be adapted to other types of poker, such as Omaha, Razz, 7-Stud, Hi/Lo?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.