https://github.com/mdp/binions
A javascript Texas Holdem tournament engine
https://github.com/mdp/binions
Last synced: 8 months ago
JSON representation
A javascript Texas Holdem tournament engine
- Host: GitHub
- URL: https://github.com/mdp/binions
- Owner: mdp
- Created: 2012-09-18T15:18:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-21T05:31:13.000Z (almost 13 years ago)
- Last Synced: 2025-03-24T20:42:58.388Z (about 1 year ago)
- Language: CoffeeScript
- Size: 256 KB
- Stars: 17
- Watchers: 4
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](http://travis-ci.org/mdp/binions)

# Binions
## A javascript poker tournament/game engine for bots
## Running a game
{Game} = require 'binions'
{Player} = require 'binions'
{NoLimit} = require 'binions'
describe "Basic game", ->
beforeEach () ->
@noLimit = new NoLimit(10,20)
@players = []
chips = 1000
misterCallsAll =
update: (game) ->
game.betting.call
for n in [0..6]
@players.push new Player(misterCallsAll, chips, n)
it "should play the game to completion with run()", (done) ->
game = new Game(@players, @noLimit)
game.run()
game.on 'complete', ->
assert.ok game.winners.length > 0
done()
## Todo
### Tests
- More tests on bet handlers(NoLimit)
### Build more example players
- Players that only play certain pocket cards (eg, Kings or higer)
- Tight players
- Players that occasionally go all in