{#each rows as row (row.key)} {#each [YOU, FOE] as const as who (who)} {#each ['left', 'right'] as const as hand (hand)} {/each} {/each} {/each} {#if drafting} {#each ['left', 'right'] as const as hand (hand)} {/each} {/if}
Turn {duel.you.name} (you) {duel.foe.name}
left right left right
{row.label}{#if row.note}{row.note}{/if} {#each row.cells[who] as p (p.index)} {@const lit = who === FOE && duel.highlight?.hand === hand && p.index >= duel.highlight.from && p.index <= duel.highlight.to} {@const notes = notesFor(who, p.index, hand)} {@const other = hand === 'left' ? p.entry.right : p.entry.left} 0} class:hidden={p.hidden} class:haste={p.entry.phase === 'haste'} class:lit> {p.hidden ? '?' : glyph(p.entry[hand], other)} {#if notes.length}{notes.join(', ')}{/if} {/each}
{duel.timeStopped ? '' : duel.turnNumber}{#if duel.timeStopped}time stop{/if} {#each duel.activeSets as set (set)} {@const undecided = duel.chosenGesture(set, hand) === null || duel.charmedHand === hand} {@const cast = duel.chosen[set][hand]} {duel.drawn(set, hand)} {#if cast && duel.sets[set][hand].spellId}{cast.spell.name}{/if} {/each} {#if !duel.timeStopped}?{/if} {#if !duel.timeStopped}?{/if}