{% set max_breakdowns = 3 %}
{% if participants|length < 3 %}
{% set max_breakdowns = participants|length %}
{% endif %}
{% for i in range(max_breakdowns) %}
{% set participant = participants[i] %}
{% for tournament_num in range(1, 7) %}
{% set result = participant.tournament_results
| selectattr("tournament", "equalto", tournament_num)
| list
| first %}
{% if result %}
{% if (result.joker is defined and result.joker) or (result.participated is defined and not result.participated) %}
T{{ tournament_num }}
🃏 Joker
{% else %}
{% set all_participated_scores = participant.tournament_results
| selectattr("participated", "defined")
| selectattr("participated")
| selectattr("score", "defined")
| map(attribute="score")
| list %}
{% set sorted_scores = all_participated_scores | sort(reverse=true) %}
{% set is_excluded = sorted_scores | length > 5 and result.score == sorted_scores[-1] %}
{% if is_excluded %}
T{{ tournament_num }}
{{ result.score }} ❌
{% else %}
T{{ tournament_num }}
{{ result.score }} ✅
{% endif %}
{% endif %}
{% else %}
T{{ tournament_num }}
-
{% endif %}
{% endfor %}
{% endfor %}
📖 How Final Scores Are Calculated
🏆 League Rule: Best 5 out of 6 tournaments count toward final ranking
🃏 Joker System: Each player can skip 1 tournament without penalty
✅Counted toward final score
❌Excluded (worst score)
🃏Joker used (skipped)
{% else %}
No League Results Available
League results will appear here when the league is complete.