vldmrkl / cl-draw

Champions League Draw Helper ⚽️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cl-draw

program sample output

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.

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

About

Champions League Draw Helper ⚽️

License:MIT License


Languages

Language:Python 100.0%