{#each g.seats as id (id)} {/each} {#each g.rounds as round, i (i)} {#each g.seats as id (id)} {/each} {/each} {#if !g.over} {#each g.seats as id (id)} {/each} {/if}
Round{g.players[id].name}{#if id === room.me} (you){/if}
{i + 1}{round.picks[id]}
{g.rounds.length + 1}{id === room.me && pick ? pick : '?'}
{#if g.over}

{g.over.winner === room.me ? 'You win.' : g.over.winner ? `${g.players[g.over.winner].name} wins.` : 'A draw.'}

{g.over.reason}

Back to the hall
{:else if room.spectating}

You watch from the Peanut Gallery

{room.awaitingText ? `${room.awaitingText} ${room.awaiting.length === 1 ? 'turns a card over and over, still choosing.' : 'turn their cards over and over, still choosing.'}` : 'Cards are being chosen, face down.'}

{:else}

Round {g.rounds.length + 1}: name a number

Every player lays a card face down; the highest card nobody else laid takes the point. First to {TARGET}.

{#each Array.from({ length: HIGHEST }, (_, i) => i + 1) as n (n)} {/each}
{#if room.error}

{room.error}

{/if}
{/if}