@namespace Faraon.Client.Components
Výsledky Hry 👑
@foreach (var player in Players.OrderBy(p => p.FinishedPosition ?? 99)) {
@if (player.FinishedPosition == 1) { 🥇 } else if (player.FinishedPosition == 2) { 🥈 } else if (player.FinishedPosition == 3) { 🥉 } else { #@(player.FinishedPosition ?? 4) }
@player.Avatar @player.Name @if (player.Type == PlayerType.AI) { (AI) }
@(player.FinishedPosition == 1 ? "Víťaz! 🎉" : $"{player.FinishedPosition}. miesto")
}
@code { [Parameter] public List Players { get; set; } = new(); [Parameter] public EventCallback OnPlayAgain { get; set; } [Parameter] public EventCallback OnBackToLobby { get; set; } }