Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.
/ poker_stats Public archive

Rails server to calculate odds of winning a texas hold-em hand.

License

Notifications You must be signed in to change notification settings

umtrey/poker_stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Poker Stats

Computes likelihood of each player winning a texas hold ‘em game.

How it is used

% [13-10-17 15:58:10] treyair11 | poker_stats4 [master]
> curl -X POST -H "Content-Type: application/json" -d '{"players":{"player1":{"cards":["AH","3D"],"folded":false},"big guy":{"cards":["AD","6D"],"folded":true},"reginald":{"cards":["3H","4D"],"folded":false}},"community_cards":["7D","7H","7C"]}' http://localhost:3000/stats
[{"player_id":"player1","win_pct":0.7364341085271318,"tie_pct":0.1406423034330011},{"player_id":"reginald","win_pct":0.12292358803986711,"tie_pct":0.1406423034330011},{"player_id":"big guy","win_pct":0.0,"tie_pct":0.0}]

About

Rails server to calculate odds of winning a texas hold-em hand.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published