🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

groupstage-tb-duel

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

groupstage-tb-duel

Groupstage with TieBreakers ending in a Duel tournament

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

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.

Keywords

tourney

FAQs

Package last updated on 16 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts