Skip to content
A javascript Texas Holdem tournament engine
CoffeeScript
Pull request Compare This branch is 8 commits behind mdp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
examples
src
test
.gitignore
.npmignore
.travis.yml
README.md
package.json

README.md

Build
Status

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
Something went wrong with that request. Please try again.