@asianark/baccarat-score-board

Baccarat Score Board Calculator

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Aug 20, 2018Jun 20, 2018Minified + gzip package size for @asianark/baccarat-score-board in KB

Readme

Baccarat ScoreBoard Calculator

Currently this only works with CommonJS;

Usage

const input: ReadonlyArray<string> = [] // Data input;
const board = ScoreBoard.fromRawData(input);
const bigRoad = board.getBigRoad(6, 42);

for (let row = 0; row < bigRoad.rowCount; row++) {
  for (let column = 0; column < bigRoad.columnCount; column++) {
    const item: RoundResult | undefined = bigRoad.getItem(row, column);
    // Do whatever you want with item data;
  }
}

// Or you can use with an iteration handler
bigRoad.forEach((item, rowIndex, columnIndex) =>
  // Do whatever you want with item data;
  global.console.log(`[${rowIndex}, ${columnIndex}]:`, item),
);

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.