// pages/gameplay.vue
.gameplay
.info-row
.info-column Current Player: {{ currentPlayerName }}
.info-column Current Turn: {{ currentTurn }} / {{ totalTurns }}
.info-column Current Iteration: {{ currentIteration }} / {{ totalIterations }}
.symbol-display
p(v-if="currentSymbol") {{ currentSymbol }}
//.story
textarea(v-model="currentStory" readonly)
.controls
button(@click="randomizeSymbol" :disabled="isIterationEnd || isGameFinished") Get Symbol
button(@click="nextPlayer" :disabled="!isIterationEnd") Next Player
.player-info
table
tr(v-for="(player, index) in players" :key="index" :class="{ 'current-player': currentPlayer === index + 1 }")
td
input(v-if="player.isEditing" v-model="player.name" @blur="player.isEditing = false")
span(v-else @click="player.isEditing = true") {{ player.name }}
button(@click="player.isEditing = !player.isEditing") Edit
td(v-for="(symbol, index) in player.symbols" :key="index") {{ symbol }}
.game-over(v-if="isGameFinished")
h2 There are no turns left
button(@click="playAgain") Play Again