Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

Holdme

Holdme is a fast Texas Hold'em Poker odds library written in Cython.

Usage

from holdme import Card, Hand, headsup

h1 = Hand('AC AD')
h2 = Hand('KS TH')

pwin, plose = headsup(h1, h2)
print pwin, plose  # 0.853392855474 0.143615269251

flop = Hand('KC KH TD')
pwin, plose = headsup(h1, h2, flop)
print pwin, plose # 0.0858585858586 0.914141414141

community = flop + Card('AH') + Card('AS')
pwin, plose = headsup(h1, h2, community)
print pwin, plose # 1, 0

print Hand('2C 3C 4C 5C 6C').name  # Straight Flush (6 high)

About

A fast Cython Texas Hold'em odds library

Resources

Releases

No releases published

Packages

No packages published