Skip to content

Commit

Permalink
Included odds calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
André Costa committed Jan 20, 2013
1 parent 06e8bcb commit 7370321
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 6 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -19,6 +19,14 @@ console.log(_.map(hand, texas.abbr));
console.log(texas.evaluate(hand));
```

The following example calculates the odds of a 2-player game:
```javascript
var texas = require('texas');

var odds = texas.odds([['As', 'Ac'], ['Ks', 'Qc']], ['3d', 'Qc', 'Kd']);
console.log(odds);
```

Which will output something like:
```
[ '5h', '3s', '4d', '7s', '5d', 'Jd', '6d' ]
Expand Down

0 comments on commit 7370321

Please sign in to comment.