From 0fb12ca2e10b3580dbe53e3e51b2a7e2cd4f5d93 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Mon, 12 Apr 2021 11:59:50 +0100 Subject: [PATCH] fixed bugs --- src/code.js | 8 ++++++-- src/style.css | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/code.js b/src/code.js index 3ded689..756f2f8 100644 --- a/src/code.js +++ b/src/code.js @@ -27,9 +27,13 @@ function move(id) if (winner != 0) { - score[winner - 1]++; + if (winner != 3) + { + score[winner - 1]++; + + info['score'].innerHTML = score[0] + " | " + score[1]; + } - info['score'].innerHTML = score[0] + " | " + score[1]; info['go'] = "X's Go"; ptm = 1; diff --git a/src/style.css b/src/style.css index 076c4fa..f225f77 100644 --- a/src/style.css +++ b/src/style.css @@ -29,7 +29,7 @@ button font-size: xx-large; font-style: bold; - background-color: #EC4E20; + background-color: #ec5020; } #reset