Baccarat Score Board Calculator


1.1.23 years ago3 years agoMinified + gzip package size for @asianark/baccarat-score-board in KB


Baccarat ScoreBoard Calculator

Currently this only works with CommonJS;


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.