Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Algorithm for UCL League Phase draw #203

Open
rolux opened this issue Feb 3, 2025 · 0 comments
Open

Algorithm for UCL League Phase draw #203

rolux opened this issue Feb 3, 2025 · 0 comments

Comments

@rolux
Copy link

rolux commented Feb 3, 2025

Can anyone give me a concise description of the algorithm for the UCL League Phase draw?

I have read the code in src/engine/dfs/ls, but I find it hard to understand.

Specifically, is it possible to draw valid matches first (1 home + 1 away match per pot, no opponent from the same country, not more than two opponents from any other country), and then reliably compute a valid schedule later (no "HH" or "AA" in rounds 1+2 and 7+8, no "HHH" or "AAA" in any three rounds, each team plays once in each round)?

(I have a working python script that simulates the draw round by round, match by match, but it has taken several hours to find a valid solution.)

Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant