Package Exports
- poker-engine
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (poker-engine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node-Poker
Event based poker engine for node.
Usage:
var Poker = require("node-poker");
// pass init parameters, and optional array of players to initialize a table
var table = poker.newTable({
minBlind: 10,
maxBlind: 20,
maxPlayers : 6
},[
{
playerName : "johnnyboy",
chips: 100
},
{
playerName : "bobbyboy",
chips: 200
},
]);
// or add a player when you need it
table.addPlayer({
playerName : "robbyboy",
chips: 300
});
// start a table!
table.StartGame();##Events:
table.on("turn",function(player){
player.Call();
});
table.on("gameOver",function(){
table.initNewRound()
});