https://github.com/taskmedia/roundrobintournament
calculate round robin tournament matches (every one against everyone) - used e.g. for group phases
https://github.com/taskmedia/roundrobintournament
roundrobin tournament
Last synced: 3 months ago
JSON representation
calculate round robin tournament matches (every one against everyone) - used e.g. for group phases
- Host: GitHub
- URL: https://github.com/taskmedia/roundrobintournament
- Owner: taskmedia
- License: mit
- Created: 2021-10-15T22:16:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T20:57:47.000Z (over 3 years ago)
- Last Synced: 2025-01-06T04:12:55.318Z (5 months ago)
- Topics: roundrobin, tournament
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# round robin tournament
This is a golang module which will provide functions to generate a 2d slice of string containing matches of given teams.
The matches will be generated using the [round-robin tournament](https://en.wikipedia.org/wiki/Round-robin_tournament).
Every team will play against every other team.## example
The following golang function call will create the 2d slice of strings above.
```go
GenerateRoundRobinTournamentMatchesByNumber(4)
``````
[
[Team 1 Team 2]
[Team 3 Team 4]
[Team 1 Team 4]
[Team 2 Team 3]
[Team 1 Team 3]
[Team 4 Team 2]
]
```You will find other examples in [example](example) directory.
---
[](https://github.com/taskmedia/roundrobintournament/releases/latest)
[](https://pkg.go.dev/github.com/taskmedia/roundrobintournament)
[](https://golang.org/dl/#stable)
[](https://github.com/taskmedia/roundrobintournament/blob/main/LICENSE)
[](https://app.codecov.io/gh/taskmedia/roundrobintournament)

[](https://github.com/taskmedia/roundrobintournament/issues)
[](https://github.com/taskmedia/roundrobintournament/pulls)
[](https://twitter.com/taskmediaDE)