This is a simple program to calculate your equity, if you know all the hands in the table. You should simply enter the board, and the hands from all the people in the table, and you get the equity from each one. Example of usage:
poker-odds --board 7c8dQd Qc9h KdQs 3h5h 7d6h 2d3d
If you want to calculate the probability of getting a Flush with your hand, you should not enter the other hands, just your own. If you play multiple hands, you will get the probability of winning other hands with a Spin, not the chance of getting that combination.
The program is BLAZINGLY FAST, because I use poker engine, which I made using uint64, instead of arrays to calculate combinations faster (using bit operations). But obviously it gets slower (up to 4 seconds in my computer) if you don't use --board
, because it gets tons of board combinations (nCr of 52 5).
- Use
-h
to know all options. - Up to 5 cards in board. If you don't want to have initial board, do not use
--board
option. - Default is coloring the terminal, that works for Linux and MacOS (it is disabled for Windows), but if you want to save the output, or process it, you can use
--no-color
to disable.
If you don't want to download the binary from releases, you can build easily with the Go compiler.
git clone https://github.com/arturo-source/poker-odds.git
cd poker-odds
go build
Or you can install the program in your GOPATH, to run it as a system program.
go install github.com/arturo-source/poker-odds@latest