+
+
+
Music Guessing Game
+
+
+
+
+
+
+ {previousPlayer?.name.substring(0, 2).toUpperCase() || '??'}
+
+
Previous
+
+
+
+
+
+ {currentPlayer?.name.substring(0, 2).toUpperCase() || '??'}
+
+
{currentPlayer?.name || 'Current'}
+
+
+
+
+
+ {nextPlayer?.name.substring(0, 2).toUpperCase() || '??'}
+
+
Next
+
+
+
+ {#if isCurrentPlayer}
+
+ Your turn!
+
+ {:else}
+
+ Waiting for {currentPlayer?.name || 'current player'} to make a move...
+
+ {/if}
+
+
+
+
+
+
+
+ {#if isPlaying}
+
+
+
+ {:else}
+
+
+
+ {/if}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {#each cards as card (card.id)}
+
+
{card.artist}
+
{card.year}
+
{card.songTitle}
+
+ {/each}
+
+
+
+
+
+ {#if middleCard.isFlipped}
+
+
+
+
+ {:else}
+
+
+
{middleCard.artist}
+
{middleCard.year}
+
{middleCard.songTitle}
+
+ {/if}
+
+
+
+
+ {#each Array(cards.length + 1) as _, i}
+ placeCard(i)}
+ disabled={!isCurrentPlayer}
+ >
+ {i + 1}
+
+ {/each}
+
+
+
+
+ {#if isCurrentPlayer}
+ Drag the mystery card and place it where you think it belongs in the timeline!
+ {:else}
+ Watch as {currentPlayer?.name || 'the current player'} makes their guess!
+ {/if}
+
+