machine-poker
The library for Machine Poker Competitions
Last updated 7 years ago by mdp .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install machine-poker 
SYNC missed versions from official npm registry.

MachinePoker

Machine Poker

Getting started

Requirements

  • NodeJS >= 0.8.x
  • A basic understanding of javascript

Installation

Via NPM

npm install MachinePoker

Local

git clone git://github.com/mdp/MachinePoker.git
cd MachinePoker
npm install

Build your bot

Check this guide on the wiki to start building your own bot

Cofiguring a new game

New matches are built using the Machine Poker API

var MachinePoker = require('MachinePoker');
var narrator = MachinePokers.observers.narrator;
var narrator = MachinePokers.observers.fileLogger('results.json');

var table = MachinePoker.create({
  maxRounds: 10
});

table.addPlayer('./examples/bots/callBot.js');
table.addPlayer('./examples/bots/callBot.js');
table.addPlayer('./examples/bots/randBot.js');

// Add some observers
table.addObserver(narrator);
table.addObserver(fileLogger);

table.on('ready', function() {
  console.log('ready');
  return table.start();
});

Updating the repo

The sample bots will evolve over the coming weeks in order to give you some better opponents. You can just update the repo to keep up to date.

git pull origin master

Todo

  • Get this working under windows (mainly just install instructions)
  • Build a file logger to keep track of the games played

Current Tags

  • 0.5.1                                ...           latest (7 years ago)

6 Versions

  • 0.5.1                                ...           7 years ago
  • 0.5.0                                ...           7 years ago
  • 0.4.0                                ...           7 years ago
  • 0.3.2                                ...           8 years ago
  • 0.3.1                                ...           8 years ago
  • 0.3.0                                ...           8 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 4
Dependencies (5)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |