groupstage-tb-duel

1.2.0 • Public • Published

GroupStage-Tb-Duel

npm status build status dependency status coverage status

A tourney that chains players though a GroupStage with possible TieBreaker round(s) (aka groupstage-tb), then pipes the winners through to a final Duel elimination round.

Usage

Require, specify rules and start sending scores to it:

var GsDuel = require('groupstage-tb-duel');
var opts = {
  groupStage: { groupSize: 4, limit: 8 }, // opts from groupstage-tb
  duel: { last: 2 } // opts from duel
};
var trn = GsDuel(32, opts);
// score it like it was a tournament
trn.stageDone(); // when done scoring this is true
trn.createNextStage();
// if groupstage didn't tie we can start scoring duel now
// otherwise we will start scoring the tiebreaker

See tourney for usage details.

License

MIT-Licensed. See LICENSE file for details.

Readme

Keywords

Package Sidebar

Install

npm i groupstage-tb-duel

Weekly Downloads

2

Version

1.2.0

License

MIT

Last publish

Collaborators

  • clux