{#each cards as cardInfo, i} {@const rotation = getCardRotation(i, cards.length, rotationDeg)} {@const position = getCardOffset(rotation)}
click(i)} class:canPlayCards style:--rotation={`${rotation}deg`} style:--left={`${position[0]}px`} style:--top={`${position[1]}px`} >
{ updateCard(i, newCard); }} />
{/each}