Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1>Tic Tac Toe</h1>
</tr>
</table>

<h2 hidden>Game over</h2>
<h2 hidden>Game over! Want to play again?! Just click refresh. 🧑‍🚀!</h2>
<button id="play-again" hidden>Play again</button>

<script>
Expand Down Expand Up @@ -149,11 +149,11 @@ <h2 hidden>Game over</h2>
// Display game over, cancel events
function endGame(result) {
if (result === "draw") {
gameOver.textContent = "Game over: Draw";
gameOver.textContent = "Game over, refresh to play again 🧑‍💻 🤖!: Draw";
} else if (result === "human") {
gameOver.textContent = "Game over: You win";
gameOver.textContent = "Game over, refresh to play again 🧑‍💻 🤖!: You win";
} else if (result === "robot") {
gameOver.textContent = "Game over: Robot wins";
gameOver.textContent = "Game over, refresh to play again 🧑‍💻 🤖!: Robot wins";
}
gameOver.hidden = false;
playAgainBtn.hidden = false;
Expand Down
Loading