Horus Heresy Tournament
{!show ? (
) : (
setName(e.target.value)}
className=”w-full px-4 py-3 mb-4 rounded bg-white/20 text-white placeholder-gray-300″
/>
)}
{events.map(e => (
{del === e.id ? (
) : (
)}
))}
{e.name}
{e.players.length} spelare
{e.rounds.length} rundor
Är du säker?
{event.name}
{event.players.length} spelare • {event.rounds.length} rundor
{event.rounds.map(r => (
))}
{tab === ‘players’ && (
Lägg till spelare
setNp({…np, name: e.target.value})} className=”px-4 py-2 rounded bg-white/20 text-white placeholder-gray-300″ />
setNp({…np, club: e.target.value})} className=”px-4 py-2 rounded bg-white/20 text-white placeholder-gray-300″ />
setNp({…np, legion: e.target.value})} className=”px-4 py-2 rounded bg-white/20 text-white placeholder-gray-300″ />
{event.rounds.length === 0 && (
)}
Loyalists ({loys.length})
{loys.map(p => (
))}
{p.name}
{p.legion} • {p.club}
W:{p.wins} D:{p.draws} L:{p.losses} • {p.points}pts • Score:{p.totalScore}
Traitors ({tras.length})
{tras.map(p => (
))}
{p.name}
{p.legion} • {p.club}
W:{p.wins} D:{p.draws} L:{p.losses} • {p.points}pts • Score:{p.totalScore}
Round {round.roundNumber}
{!allResultsDone && (
{pendingCount} bord saknar resultat
)}
{event.rounds.length >= 10 && (
Max 10 rundor uppnått
)}
{round.matches.map((m, i) => (
))}
Match {i + 1} • Bord {m.table}
{m.result && {m.result === ‘draw’ ? ‘Draw’ : `Winner: ${event.players.find(p => p.id === m.winner)?.name}`}}
{m.result && (
)}
LOYALIST
{m.loyalist?.name}
{m.loyalist?.legion}
updScore(ri, m.id, ‘loyalist’, e.target.value)} disabled={m.result} className=”w-full px-2 py-1 rounded bg-white/20 text-white disabled:opacity-50″ />
TRAITOR
{m.traitor?.name}
{m.traitor?.legion}
updScore(ri, m.id, ‘traitor’, e.target.value)} disabled={m.result} className=”w-full px-2 py-1 rounded bg-white/20 text-white disabled:opacity-50″ />
Standings
| Rank | Player | Faction | W | D | L | Pts | Score |
|---|---|---|---|---|---|---|---|
| {i + 1} | {p.name} | {p.faction} | {p.wins} | {p.draws} | {p.losses} | {p.points} | {p.totalScore || 0} |
Faction Standings
LOYALISTS
{loyPts}
rundpoäng
TRAITORS
{traPts}
rundpoäng
Inga rundor ännu.
) : (| Runda | Loyalist Wins | Traitor Wins | Vinnare |
|---|---|---|---|
| Round {r.roundNumber} | {loyWins} | {traWins} | {roundWinner === ‘Loyalist’ && ⚔ Loyalist +1} {roundWinner === ‘Traitor’ && ⚔ Traitor +1} {roundWinner === ‘Tie’ && Oavgjort} {!roundWinner && Pågår…} |
Export Rounds
{event.rounds.length === 0 ? (Inga rounds ännu.
) : (
{event.rounds.map((r, i) => (
{discordRi === i && (
)}
))}
)}
Round {r.roundNumber}
{r.timestamp}
Klistra in detta på Discord:
