js/tictactoe.js
/* ResetBoard clears all boxes of X/O values and sets the turn counter to 1; resets most HTML to when the page first loaded */
ResetBoard clears all boxes of X/O values and sets the turn counter to 1; resets most HTML to when the page first loaded
ResetBoard clears all boxes of X / O values and sets the turn counter to 1 ; resets most HTML to when the page first loaded
function ResetBoard()
{
    var list = document.getElementsByClassName("box");
    for(var i = 0; i < list.length; i++)
    {
        list[i].classList = "box";
        list[i].style.opacity = 1.0;
    } 
    document.getElementById("Counter").textContent = "1";
    document.getElementById("Message").textContent = "X's turn";
    console.clear();
} 
function ResetBoard ( ) { var list = document . getElementsByClassName ( "box" ) ; for ( var i = 0 ; i < list . length ; i ++ ) { list [ i ] . classList = "box" ; list [ i ] . style . opacity = 1.0 ; } document . getElementById ( "Counter" ) . textContent = "1" ; document . getElementById ( "Message" ) . textContent = "X's turn" ; console . clear ( ) ; }
ResetBoard clears all boxes of X/O values and sets the turn counter to 1; resets most HTML to when the page first loaded
ResetBoard clears all boxes of X / O values and sets the turn counter to 1 ; resets most HTML to when the page first loaded
// End of function ResetBoard
