This module provides a way to glue together tournament like building blocks (or even other tourneys) to create larger tourneys that does not have tournament's pre-determined match size restriction.
As this library does not provide anything but an interface, it is probably easiest to understand by seeing some implementions:
You should read at least one of:
The short of it is that you can use any implementation like if it was a Tournament, but with extra stage separation:
var MyTourney = require'./mytrn.js'// suppose MyTourney has 3 stages:// 1. GroupStage// 2. FFA// 3. Duelvar opts =groupStage: groupSize: 4 limit: 16 // want the top 16 to proceed to Ffaffa: sizes: 4 4 advancers: 2 limit: 4 // top 4 to Duel stageduel: last: DuelLBvar trn = 32 opts;// then:trnmatches; // gives you the current stage (groupstage first)trnscoretrnmatchesiid 10; // score a match like a tournament// when all scored:trnstageDone; // truetrncreateNextStage;trnmatches; // either round 1 of FFA or tiebreakers for the groupstage// keep scoring and making next stages until:trnisDone; // cannot create more stages nowtrncomplete; // lock down state
MIT-Licensed. See LICENSE file for details.