diff --git a/index.html b/index.html index 19d0dee..9a49bb5 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - +
@@ -20,12 +20,23 @@

Welcome to Tic Tac Toe

- - + + + + + + + + + + + +
+ diff --git a/scripts.js b/scripts.js index ba09e74..c3db873 100644 --- a/scripts.js +++ b/scripts.js @@ -50,7 +50,7 @@ const addMarker = (id) => { // .getElementById(id) // document // .innerHTML - + document.getElementById(id).innerHTML = currentMarker changeMarker() } @@ -93,6 +93,8 @@ const resetBoard = () => { // = // document // const + + const squares = document.getElementsByTagName("TD") // loops over the HTML Collection of TDs and clears out the Xs and Os for (i=0; i < squares.length; i++) {