https://github.com/vldmrkl/cl-draw
Champions League Draw Helper ⚽️
https://github.com/vldmrkl/cl-draw
champions-league football soccer uefa
Last synced: about 2 months ago
JSON representation
Champions League Draw Helper ⚽️
- Host: GitHub
- URL: https://github.com/vldmrkl/cl-draw
- Owner: vldmrkl
- License: mit
- Created: 2021-12-14T01:34:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-14T05:02:05.000Z (over 3 years ago)
- Last Synced: 2025-02-07T15:26:07.512Z (4 months ago)
- Topics: champions-league, football, soccer, uefa
- Language: Python
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cl-draw
## What's cl-draw?
cl-draw is an assistant tool for draws of Champions League (round of 16) style competitions. The creation of this tool was inspired after [UEFA voided the Champions League 21/22 Round of 16 draw because of technical issues](https://www.uefa.com/uefachampionsleague/news/0270-13f2ac0aff13-74f2ff9e43b1-1000--champions-league-round-of-16-draw-declared-void-and-will-be-red/).## How to use
### Install dependencies
If you don't have pipenv:
```
pip install --user pipenv
```Install dependencies from Pipfile:
```
pipenv install
```### Run
`python main.py`## How this works
### Input
This program expects an input file named 'teams.json', which has the following structure:
```
{
"seeded": [
{
"team": string,
"group": string,
"country": string
},
...
],
"unseeded": [
{
"team": string,
"group": string,
"country": string
},
...
]
}
```### Rules
The program currently follows UEFA's rules for their Champions League Round of 16 draw. This includes:
* Teams from the same country cannot play each other
* Teams from the same group cannot play each other