# binions

> A Javascript Poker game engine

Latest version **0.6.5** (published 2013-06-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install binions
pnpm add binions
yarn add binions
bun add binions
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.5 |
| Published | 2013-06-21 |
| First published | 2012-09-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.x |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 17 |
| Author | Mark Percival |
| Maintainers | mdp |
| Keywords | poker tournament, pokerbot, poker, poker engine, texas hold'em |

## Links

- npm: https://www.npmjs.com/package/binions
- Repository: https://github.com/mdp/binions
- Issues: https://github.com/mdp/binions/issues
- npm.io page: https://npm.io/package/binions

## Dependencies (1)

- [hoyle](https://npm.io/package/hoyle.md) >=0.2.1

## Recent versions

- 0.6.5 (latest) — 2013-06-21
- 0.6.4 — 2012-11-23
- 0.6.3 — 2012-11-15
- 0.6.2 — 2012-11-14
- 0.6.1 — 2012-11-14
- 0.6.0 — 2012-11-03
- 0.5.0 — 2012-10-30
- 0.4.3 — 2012-10-29
- 0.4.2 — 2012-10-29
- 0.4.1 — 2012-10-29
- 0.4.0 — 2012-10-29
- 0.3.0 — 2012-10-25
- 0.2.3 — 2012-10-23
- 0.2.2 — 2012-09-20
- 0.2.1 — 2012-09-19
- … 1 more at https://npm.io/package/binions/versions

## README

[![Build
Status](https://secure.travis-ci.org/mdp/binions.png)](http://travis-ci.org/mdp/binions)

![Binions](http://s3.amazonaws.com/img.mdp.im/binions_cut-20120918-200256.jpg)

# 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

---
_Source: https://npm.io/package/binions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
