groupstage-tb-duel
v1.2.0
Published
Groupstage with TieBreakers ending in a Duel tournament
Downloads
17
Readme
GroupStage-Tb-Duel
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.