Player log

{#if showRawStderr}
{playerLog.flatMap((turn) => turn.stderr).join("\n")}
{:else}
{#each playerLog as logTurn, i}
Turn {i} {#if logTurn.action?.type === "bad_command"} invalid command {/if}
{#if logTurn.action?.type === "bad_command"}
{logTurn.action.command}
Parse error: {logTurn.action.error}
{/if} {#if logTurn.stderr.length > 0}
stderr
{#each logTurn.stderr as stdErrMsg}
{stdErrMsg}
{/each}
{/if}
{/each}
{/if}