{% if plan %}

Plan the night {{ plan.minutes }} min of {{ minutes }}, total score {{ plan.score|floatformat:0 }}

{% if plan.picks %}
    {% for r in plan.picks %}
  1. {{ r.game.title }} ≈{{ r.minutes }} min + setup · weight {{ r.game.weight|floatformat:1 }} · score {{ r.score|floatformat:0 }}
  2. {% endfor %}

Best-scoring combination that fits the time budget (5 min setup per game), lightest game first.

{% else %}

Nothing fits in that time.

{% endif %}
{% endif %}

Ranked recommendations

{% for r in ranked %}
{{ r.score|floatformat:0 }}

{{ r.game.title }} ≈{{ r.minutes }} min · {{ r.game.min_players }}–{{ r.game.max_players }} players

{% for f in r.factors %}{% endfor %}
{{ f.label }}
{{ f.note }}
{% empty %}

No game is a fit for this group and time.

{% endfor %} {% if excluded %}
{{ excluded|length }} games ruled out
{% endif %}