Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Antenehden committed Aug 11, 2024
1 parent e97cbce commit e0a429e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,12 @@ <h3>Scores</h3>
gameBoard.appendChild(spacer);
});

guessDisplay.textContent = 'Guess: ' + (currentRound.guess || '');
const currentStake = currentRound.currentStake;
document.getElementById('stake').textContent = 'Stake: ' + currentStake;

guessDisplay.textContent = 'Guessed Letters: ' + (currentRound.lettersguessed);
timerDisplay.textContent = 'Timer: ' + (currentRound.timer || '');
stakeDisplay.textContent = 'Stake: ' + (currentRound.stake.currentStake || '');
stakeDisplay.textContent = 'Stake: ' + (currentRound.currentStake);
statusDisplay.textContent = 'Status: ' + (gameState.isGameActive ? 'Closed' : 'Open');
roundDisplay.textContent = 'Round: ' + (gameState.currentRoundIndex + 1) + '/' + gameState.rounds.length;
winnerDisplay.textContent = 'Winner: ' + (gameState.winner ? gameState.winner.name : '');
Expand All @@ -245,7 +248,7 @@ <h3>Scores</h3>
scoreTable.appendChild(row);
});

const buttonsEnabled = gameState.players.length >= 2;
const buttonsEnabled = gameState.isGameActive && gameState.players.length >= 2;
buyVowelButton.disabled = !buttonsEnabled || currentPlayer.id !== playerId;
selectConsonantButton.disabled = !buttonsEnabled || currentPlayer.id !== playerId;
solvePuzzleButton.disabled = !buttonsEnabled || currentPlayer.id !== playerId;
Expand Down

0 comments on commit e0a429e

Please sign in to comment.