Merge pull request #152 from Maix0/feat/ttt/cleanboard_endgame

Clearing board on game end
This commit is contained in:
G.C.L. Baptiste 2026-01-13 16:42:43 +01:00 committed by GitHub
commit 5eec958663
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}) })