Tournamex (tournamex v0.1.8)
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.
Initialize match list with fight result.
Put value on bracket list. The second argument 'key' should be the user id.
Renew match list with loser.
Link to this section Functions
brackets(match_list)
Returns data which is presenting tournament brackets.
brackets_with_fight_result(match_list)
Returns data which is presenting tournament brackets.
check_lose?(match_list, user_id)
Check if the user has already lost.
delete_loser(list, loser)
Delete losers from match list.
generate_matchlist(list)
Generates a matchlist.
initialize_match_list_with_fight_result(match_list, result \\ [])
Initialize match list with fight result.
put_value_on_brackets(match_list, key, value, result \\ [])
Put value on bracket list. The second argument 'key' should be the user id.
renew_match_list_with_loser(match_list, loser)
Renew match list with loser.