Round robin match scheduler
- No limitation in numbers
- Each contestant meets every other participant
$ npm install @xituru/round-robin
$ yarn add @xituru/round-robin
<script src="https://unpkg.com/@xituru/round-robin"></script>
const { RoundRobin } = require('@xituru/round-robin')
const schedule = RoundRobin(['P1', 'P2', 'P3', 'P4'])
import { RoundRobin } from '@xituru/round-robin'
const schedule = RoundRobin(['P1', 'P2', 'P3', 'P4'])
import { RoundRobin } from '@xituru/round-robin'
const schedule: [string, string][] = RoundRobin<string>(['P1', 'P2', 'P3', 'P4'])
Install using CDN
<script>
const schedule = window.RoundRobin(['P1', 'P2', 'P3', 'P4'])
</script>