Tournamex.RoundRobin (tournamex v0.6.4)

Round-Robin

Generate round robin match-making data.

Link to this section Summary

Functions

Returns win count of a user.

Generates a round robin match list.

Insert winner id into match list.

Checks if the matches of current_match_index has been finished all.

Link to this section Functions

Link to this function

count_win(match_list, id)

Specs

count_win([any()], integer() | String.t()) :: integer()

Returns win count of a user.

Link to this function

generate_match_list(list)

Specs

generate_match_list([integer()]) :: {:ok, [any()]}

Generates a round robin match list.

Link to this function

insert_winner_id(map, winner_id, match)

Specs

insert_winner_id(map(), integer(), String.t()) :: any()

Insert winner id into match list.

Link to this function

is_current_matches_finished_all?(map)

Specs

is_current_matches_finished_all?(map()) :: boolean()

Checks if the matches of current_match_index has been finished all.