tournament-pairings
Version:
Functions to generate pairings for tournaments
12 lines (11 loc) • 366 B
TypeScript
import { Match } from './Match.js';
export interface Player {
id: string | number;
score: number;
pairedUpDown?: boolean;
receivedBye?: boolean;
avoid?: Array<string | number>;
seating?: Array<-1 | 1>;
rating?: number | null;
}
export declare function Swiss(players: Player[], round: number, rated?: boolean, seating?: boolean): Match[];