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