Skip to content

vldmrkl/cl-draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages