(tic-tac-toe): Clearing board on game end.

This commit is contained in:
apetitco 2026-01-13 16:33:49 +01:00
parent ca1865b850
commit f83ae5ce71

View file

@ -169,6 +169,9 @@ async function handleTTT(): Promise<RouteHandlerReturn> {
socket.on('gameEnd', () => { socket.on('gameEnd', () => {
curGame = null; curGame = null;
for (let idx = 0 ; idx < 9 ; idx++) {
cells[idx].innerText = " ";
};
currentPlayerTimer.innerText = "Waiting for match..."; currentPlayerTimer.innerText = "Waiting for match...";
joinQueueBtn.innerText = QueueState.Idle; joinQueueBtn.innerText = QueueState.Idle;
}) })