{#if !start}

Welcome! QueueB is a daily spacial puzzle game. Each day everyone recieves the daily queue of blocks and you must decide where to place them to maximize your score! Future updates will include an all time top scores chart and a 1 vs 1 challenge mode where you can take turns with a friend competing for the most points on a shared board!

Your Username

Created By Paradis Bend Studio

{/if}

Welcome {username}

{#each cube as c, index} {#each c as x, i}
{#if root[0] == index && root[1] == i && !gameEnding && !gameOver && start}
{#each block[rotation] as b}
0 ? `background-color: rgba(${colors[current]}, 0.7)` : ""} > {#if b == 2}{/if}
{/each}
{/if}
{/each} {/each}
{#if gameOver}

Score: {score}

Thanks For Playing!

{/if}

Todays Top 10

Player
Count
Score
{#each scoreboard.now as sc, i}
onShare(i,'now')} on:keydown={(e) => { if (e.key === 'Enter' || e.key === ' ') { onShare(i,'now'); } }}>
{sc.username}
{sc.count}
{sc.score}
{/each}

Last Top 10

Player
Count
Score
{#each scoreboard.prev as sc}
{sc.username}
{sc.count}
{sc.score}
{/each}
{#if gameOver}
{ if (shareBoard) onShare(sbi, shareTarget); }} on:keydown={(e) => { if ((e.key === 'Enter' || e.key === ' ') && shareBoard) { onShare(sbi, shareTarget); } }}>

{shareBoard ? 'Click Here to Hide Board Below!' : 'Click Someones Score To View Their Board!'}

{/if} {#if gameOver && shareBoard && scoreboard[shareTarget].length > 0}

{`${scoreboard[shareTarget][sbi].username}'s #${sbi+1} Board ${shareTarget == 'now' ? 'Today' : 'Yesterday'}: ${scoreboard[shareTarget][sbi].count} Blocks`}

{#each JSON.parse(scoreboard[shareTarget][sbi].cube) as c, index} {#each c as x, i}
{/each} {/each}
{/if}

Hall Of Fame

Player
Date
Count
Score
{#each scoreboard.hof as sc}
{sc.username}
{sc.day}
{sc.count}
{sc.score}
{/each}

**WIP - Hall of Fame Updates Daily**