Tournamex (tournamex v0.1.6)

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.

Check if the user has already lost.

Delete losers from match list.

Generates a matchlist.

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

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

renew_match_list_with_loser(match_list, loser)

Renew match list with loser.