
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
machine-poker
Advanced tools

Machine Poker is a libray which allows you go build poker bots and have them compete against each other in tournaments.
Currently this supports bots written in Javascript running locally, or bots that play remotely via HTTP and conform to the MachinePoker API
npm install machine-poker
git clone git://github.com/mdp/MachinePoker.git
cd MachinePoker
npm install
Check this guide on the wiki to start building your own bot
New matches are built using the Machine Poker API
var MachinePoker = require('machine-poker');
, LocalSeat = MachinePoker.seats.JsLocal
, RemoteSeat = MachinePoker.seats.Remote
, CallBot = require('./examples/bots/callBot')
, RandBot = require('./examples/bots/randBot')
, FoldBot = require('./examples/bots/foldBot')
, narrator = MachinePoker.observers.narrator
, fileLogger = MachinePoker.observers.fileLogger('./examples/results.json');
var table = MachinePoker.create({
maxRounds: 100
});
// Source be found at: https://github.com/mdp/RandBot
var remotePlayerUrl = "http://randbot.herokuapp.com/randBot";
var remotePlayer = RemoteSeat.create(remotePlayerUrl);
remotePlayer.on('ready', function () {
var players = [
remotePlayer
, LocalSeat.create(CallBot)
, LocalSeat.create(FoldBot)
, LocalSeat.create(RandBot)
, LocalSeat.create(RandBot)
];
table.addPlayers(players);
table.on('tournamentClosed', function () { process.exit() } );
table.start();
});
// Add some observers
table.addObserver(narrator);
table.addObserver(fileLogger);
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
FAQs
The library for Machine Poker Competitions
We found that machine-poker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.