Tournamex (tournamex v0.1.13)

Tournamex

Simple package for managing online tournament system. Tournamex only has a function for generating matchlist from list. We will add functions gradually.

Link to this section Summary

Functions

Returns data which is presenting tournament brackets.

Returns data which is presenting tournament brackets.

Check if the user has already lost.

Delete losers from match list.

Generates a matchlist.

Convert match list to list. FIXME: 不要

Put value on bracket list. The second argument 'key' should be the user id.

Renew match list with loser.

Link to this section Functions

Link to this function

brackets(match_list)

Returns data which is presenting tournament brackets.

Link to this function

brackets_with_fight_result(match_list)

Returns data which is presenting tournament brackets.

Link to this function

check_lose?(match_list, user_id)

Check if the user has already lost.

Link to this function

delete_loser(list, loser)

Delete losers from match list.

Link to this function

generate_matchlist(list)

Generates a matchlist.

Link to this function

initialize_match_list_with_fight_result(match_list, result \\ [])

Initialize match list with fight result.

Link to this function

match_list_to_list(match_list)

Convert match list to list. FIXME: 不要

Link to this function

put_value_on_brackets(match_list, key, value, result \\ [])

Put value on bracket list. The second argument 'key' should be the user id.

Link to this function

renew_match_list_with_loser(match_list, loser)

Renew match list with loser.

Link to this function

win_count_increment(match_list, user_id)

Win count increment.