Current collected state Current
Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Texas Hold'em developed in NodeJS by 1game
npm i 1game-texas-holdem --save
var th = require('1game-texas-holdem');
// sample game supports 0-11 players
var numOfPlayers = 5;
// API - `sample`
var new_sample = th.sample(numOfPlayers);
// reveal the Board
// sample game stores the Board as an array of 5 Cards.
var board = new_sample.board;
console.log('The Board: ', board);
// reveal the players' Hands
// sample game stores the players' Hands in a two-dimensional array.
var hands = new_sample.hands;
console.log('The Hands: ', hands);
// reveal the 5th Player's Hands
var playerIndex = 4;
var pHands = [ hands[0][playerIndex], hands[1][playerIndex] ];
console.log('The 5th Player\'s Hands: ', pHands);
// after you retrieve the Hands and the Board.
// API - `rule` -> `count`
var input = pHands.concat(board);
var output = th.rule.count(input);
// show what the player hits
console.log(output.rank);
// show the related indexs of the `best` five cards.
console.log(output.ix);
// construct the value string
var val = th.rule.value(input, output);
console.log(val);
a simple game structure
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.12.1Registry latest | 15 Jul 2016 | 16 | |
| 1.12.0 | 14 Jul 2016 | 16 | |
| 1.11.1 | 8 Jul 2016 | 13 | |
| 1.11.0 | 8 Jul 2016 | 13 | |
| 1.10.1 | 7 Jul 2016 | 13 | |
| 1.10.0 | 7 Jul 2016 | 13 | |
| 1.9.0 | 7 Jul 2016 | 14 | |
| 1.8.2 | 7 Jul 2016 | 14 | |
| 1.8.1 | 7 Jul 2016 | 14 | |
| 1.8.0 | 7 Jul 2016 | 14 | |
| 1.7.0 | 4 Jul 2016 | 14 | |
| 1.6.0 | 3 Jul 2016 | 14 | |
| 1.5.0 | 3 Jul 2016 | 14 | |
| 1.4.0 | 2 Jul 2016 | 14 | |
| 1.3.0 | 2 Jul 2016 | 9 | |
| 1.2.0 | 1 Jul 2016 | 7 | |
| 1.1.0 | 29 Jun 2016 | 1 | |
| 1.0.0 | 21 Jun 2016 | 1 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Shared repository data · GitHub
Shared repository data · GitHub
Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:883b0c008d4554ba088c1d3e6c72324e9ecee2a2c403f6638aa059bafec9ed48