{% extends 'base.html.twig' %} {% block title %}Pedantix - Récapitulatif de la partie{% endblock %} {% block stylesheets %} {% endblock %} {% block body %}

Récapitulatif de la partie

{{ room.title }}

{{ stats.total_players }} joueur{{ stats.total_players > 1 ? 's' : '' }} - Mode {{ room.gameMode == 'cooperation' ? 'Coopération' : 'Compétition' }}

{{ stats.total_players }}

Joueurs total

{{ stats.completed_players }}

Ont terminé

{{ stats.completion_rate }}%

Taux de réussite

{{ stats.average_attempts|number_format(1) }}

Tentatives moy.

Classement final

{% if stats.player_stats is not empty %} {% for player in stats.player_stats %} {% set rank_class = player.rank == 1 ? 'rank-1' : (player.rank == 2 ? 'rank-2' : (player.rank == 3 ? 'rank-3' : 'other')) %}
{% if player.rank == 1 %} {% elseif player.rank == 2 %} 2 {% elseif player.rank == 3 %} 3 {% else %} {{ player.rank }} {% endif %}
{{ player.name }} {% if player.rank == 1 %} {% endif %}
Score: {{ player.score }}
Tentatives: {{ player.attempts }}
Mots: {{ player.words_found }}
{% if player.completed %} Terminé: {{ player.completion_time }} {% else %} En cours {% endif %}
{% endfor %} {% else %}

Aucun joueur dans cette partie

{% endif %}

Statistiques

Mots trouvés total: {{ stats.total_words_found }}
Record personnel: {{ stats.most_words_found }} mots
{% if stats.fastest_completion %}
Temps le plus rapide: {{ (stats.fastest_completion / 60)|number_format(1) }} min
{% endif %}

Difficulté des mots

{% if stats.word_difficulty is not empty %} {% for word in stats.word_difficulty|slice(0, 10) %} {% set difficulty_class = 'difficulty-' ~ word.difficulty|replace(' ', '-')|lower %}
{{ word.word }}
{{ word.difficulty }}
{{ word.found_by }}/{{ stats.total_players }}
{% endfor %} {% else %}

Aucun mot trouvé

{% endif %}
Retour à l'accueil
{% endblock %} {% block javascripts %} {% endblock %}