New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

binions

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binions

A Javascript Poker game engine

latest
Source
npmnpm
Version
0.6.5
Version published
Maintainers
1
Created
Source

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

Keywords

poker tournament

FAQs

Package last updated on 21 Jun 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts