setViewMode(ViewMode.Editor)} > Editor
setViewMode(ViewMode.Rules)} > Rules
setViewMode(ViewMode.Leaderboard)} > Leaderboard
match history
{#each matches as match}
selectMatch(match.id)} class:selected={match.id === selectedMatchId} >
{formatMatchTimestamp(match.timestamp)}
{match["players"][1]["bot_name"]}
{/each}
{#if viewMode === ViewMode.MatchVisualizer}
{:else if viewMode === ViewMode.Editor}
{:else if viewMode === ViewMode.Rules}
{:else if viewMode === ViewMode.Leaderboard}
{/if}
{#if viewMode === ViewMode.MatchVisualizer}
{:else if viewMode === ViewMode.Editor}
{/if}