Tourney
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:
Usage
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 = // suppose MyTourney has 3 stages:// 1. GroupStage// 2. FFA// 3. Duelvar opts = groupStage: groupSize: 4 limit: 16 // want the top 16 to proceed to Ffa ffa: sizes: 4 4 advancers: 2 limit: 4 // top 4 to Duel stage duel: last: DuelLB var trn = 32 opts; // then:trnmatches; // gives you the current stage (groupstage first)trn; // score a match like a tournament // when all scored:trn; // truetrn;trnmatches; // either round 1 of FFA or tiebreakers for the groupstage // keep scoring and making next stages until:trn; // cannot create more stages nowtrncomplete; // lock down state
License
MIT-Licensed. See LICENSE file for details.