Skip to content

Got a problem, if the number of participants is more than 8 #1

@andreyversh

Description

@andreyversh

We get a problem if the number of participants is more than 8
clist = [
Competitor("A Comp", "1 Team", 2000),
Competitor("B Comp", "1 Team", 1500),
Competitor("C Comp", "1 Team", 1000),
Competitor("D Comp", "2 Team", 2020),
Competitor("E Comp", "2 Team", 1520),
Competitor("F Comp", "3 Team", 1930),
Competitor("G Comp", "4 Team", 2040),
Competitor("J Comp", "5 Team", 2060),
Competitor("M Comp", "4 Team", 2040),
Competitor("N Comp", "5 Team", 2060)
]

Result:
[Clash<Competitor<B Comp, 1 Team, 1500>, None>,
Clash<Competitor<G Comp, 4 Team, 2040>, Competitor<E Comp, 2 Team, 1520>>,
Clash<Competitor<A Comp, 1 Team, 2000>, None>,
Clash<Competitor<N Comp, 5 Team, 2060>, None>,
Clash<Competitor<M Comp, 4 Team, 2040>, None>,
Clash<Competitor<J Comp, 5 Team, 2060>, Competitor<C Comp, 1 Team, 1000>>,
Clash<Competitor<D Comp, 2 Team, 2020>, None>,
Clash<Competitor<F Comp, 3 Team, 1930>, None>]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions