UNPKG

nttb-support

Version:

A repository containing javascript functions to support NTTB application development

119 lines (118 loc) 4.52 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RoundRobinPool_12_Players = exports.RoundRobinPool_11_Players = exports.RoundRobinPool_10_Players = exports.RoundRobinPool_9_Players = exports.RoundRobinPool_8_Players = exports.RoundRobinPool_7_Players = exports.RoundRobinPool_6_Players = exports.RoundRobinPool_5_Players = exports.RoundRobinPool_4_Players = exports.RoundRobinPool_3_Players = void 0; var match_1 = require("./match"); // Short hand to create a new Match function M(home, away) { return new match_1.Match(home, away); } exports.RoundRobinPool_3_Players = { matches: [ [M(2, 3)], [M(1, 3)], [M(1, 2)], ] }; exports.RoundRobinPool_4_Players = { matches: [ [M(1, 4), M(2, 3)], [M(1, 3), M(2, 4)], [M(1, 2), M(3, 4)], ] }; exports.RoundRobinPool_5_Players = { matches: [ [M(2, 5), M(3, 4)], [M(1, 5), M(2, 4)], [M(1, 4), M(2, 3)], [M(1, 3), M(4, 5)], [M(1, 2), M(3, 5)], ] }; exports.RoundRobinPool_6_Players = { matches: [ [M(1, 6), M(2, 5), M(3, 4)], [M(1, 5), M(2, 4), M(3, 6)], [M(1, 4), M(2, 3), M(5, 6)], [M(1, 3), M(2, 6), M(4, 5)], [M(1, 2), M(3, 5), M(4, 6)], ] }; exports.RoundRobinPool_7_Players = { matches: [ [M(2, 7), M(3, 6), M(4, 5)], [M(1, 7), M(3, 5), M(4, 6)], [M(2, 5), M(1, 6), M(4, 7)], [M(1, 5), M(2, 6), M(3, 7)], [M(1, 4), M(6, 7), M(2, 3)], [M(5, 7), M(2, 4), M(1, 3)], [M(5, 6), M(3, 4), M(1, 2)], ] }; exports.RoundRobinPool_8_Players = { matches: [ [M(1, 8), M(2, 7), M(3, 6), M(4, 5)], [M(1, 7), M(2, 6), M(3, 5), M(4, 8)], [M(1, 6), M(2, 5), M(3, 8), M(4, 7)], [M(1, 5), M(2, 8), M(3, 7), M(4, 6)], [M(5, 8), M(6, 7), M(2, 3), M(1, 4)], [M(6, 8), M(5, 7), M(2, 4), M(1, 3)], [M(7, 8), M(5, 6), M(3, 4), M(1, 2)], ] }; exports.RoundRobinPool_9_Players = { matches: [ [M(2, 9), M(3, 8), M(4, 7), M(5, 6)], [M(1, 9), M(2, 8), M(3, 7), M(4, 6)], [M(1, 8), M(2, 7), M(3, 6), M(4, 5)], [M(1, 7), M(2, 6), M(3, 5), M(8, 9)], [M(1, 6), M(2, 5), M(4, 9), M(7, 8)], [M(1, 5), M(3, 9), M(4, 8), M(6, 7)], [M(5, 9), M(6, 8), M(1, 4), M(2, 3)], [M(5, 8), M(7, 9), M(1, 3), M(2, 4)], [M(6, 9), M(5, 7), M(3, 4), M(1, 2)], ] }; exports.RoundRobinPool_10_Players = { matches: [ [M(1, 10), M(2, 9), M(3, 8), M(4, 7), M(5, 6)], [M(1, 9), M(2, 8), M(3, 7), M(4, 6), M(5, 10)], [M(1, 8), M(2, 7), M(3, 6), M(4, 5), M(9, 10)], [M(1, 7), M(2, 6), M(3, 5), M(4, 10), M(8, 9)], [M(1, 6), M(2, 5), M(3, 10), M(4, 9), M(7, 8)], [M(1, 5), M(2, 10), M(3, 9), M(4, 8), M(6, 7)], [M(1, 4), M(2, 3), M(5, 9), M(6, 8), M(7, 10)], [M(1, 3), M(2, 4), M(5, 8), M(6, 10), M(7, 9)], [M(1, 2), M(3, 4), M(5, 7), M(6, 9), M(8, 10)], ] }; exports.RoundRobinPool_11_Players = { matches: [ [M(2, 11), M(3, 10), M(4, 9), M(5, 8), M(6, 7)], [M(1, 11), M(2, 10), M(3, 9), M(4, 8), M(5, 7)], [M(1, 10), M(2, 9), M(3, 8), M(4, 7), M(5, 6)], [M(1, 9), M(2, 8), M(3, 7), M(4, 6), M(5, 11)], [M(1, 8), M(2, 7), M(3, 6), M(4, 5), M(10, 11)], [M(1, 7), M(2, 6), M(3, 5), M(4, 11), M(9, 10)], [M(1, 6), M(2, 5), M(3, 4), M(9, 11), M(8, 10)], [M(1, 5), M(2, 4), M(6, 11), M(7, 10), M(8, 9)], [M(1, 4), M(2, 3), M(6, 10), M(7, 9), M(8, 11)], [M(1, 3), M(4, 10), M(5, 9), M(6, 8), M(7, 11)], [M(1, 2), M(3, 11), M(5, 10), M(6, 9), M(7, 8)], ], }; exports.RoundRobinPool_12_Players = { matches: [ [M(1, 12), M(2, 11), M(3, 10), M(4, 9), M(5, 8), M(6, 7)], [M(1, 11), M(2, 10), M(3, 9), M(4, 8), M(5, 7), M(6, 12)], [M(1, 10), M(2, 9), M(3, 8), M(4, 7), M(5, 6), M(11, 12)], [M(1, 9), M(2, 8), M(3, 7), M(4, 6), M(5, 11), M(10, 12)], [M(1, 8), M(2, 7), M(3, 6), M(4, 5), M(9, 12), M(10, 11)], [M(1, 7), M(2, 6), M(3, 5), M(4, 11), M(8, 12), M(9, 10)], [M(1, 6), M(2, 5), M(3, 4), M(7, 12), M(8, 10), M(9, 11)], [M(1, 5), M(2, 4), M(3, 12), M(6, 11), M(7, 10), M(8, 9)], [M(1, 4), M(2, 3), M(5, 12), M(6, 10), M(7, 9), M(8, 11)], [M(1, 3), M(2, 12), M(4, 10), M(5, 9), M(6, 8), M(7, 11)], [M(1, 2), M(3, 11), M(4, 12), M(5, 10), M(6, 9), M(7, 8)], ] };