room-squares
Constructs Room squares from k=7 to k=47.
Install
npm install room-squares
Usage
let RS = let square =
Which gives you:
Which is useful for creating schedules for tournaments, because the square has the properties:
- Has k + 1 unique symbols, grouped in pairs.
- Every pair appear exactly once in the whole square.
- Every symbol is appear excatly once in each row.
- Every symbol is appear excatly once in each column.
In a tournament this translates to rows being rounds, columns being tables/problems. Every player will therefor meet every oponent exactly once, and do every problem exactly once.
Theory
Starters are from "Contruction of Room Squares" by Stanton and Mullin.
License
MIT - Arve Seljebu 2017