From 087f7c32eff9df2173ac856eeed37d2385ec44b8 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Mon, 12 Apr 2021 09:40:59 +0100 Subject: [PATCH] reset --- src/code.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/code.js b/src/code.js index 47715c2..7005ccd 100644 --- a/src/code.js +++ b/src/code.js @@ -148,5 +148,13 @@ function win() function reset() { - + var x; + for (x = 0; x >= 2; x++) + { + var y; + for (y = 0; y >= 2; y++) + { + board[x][y][1].innerHTML = " "; + } + } } \ No newline at end of file