Skip to content

arturo-source/poker-odds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculate poker odds from your terminal

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

Result of running the last command

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.

Result of running the last command with just one hand

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).

Result of running hands without board

Program options

  • 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.

Build the program your own

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

About

Command line tool to calculate poker equity.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages