tictactoe.js
//Randomise turn at beginning of game

Randomise turn at beginning of game
Randomise turn at beginning of game
function startGame (){
       let number = Math.floor(Math.random() * 2);
       if (number == 0){
           currentPlayer = playerOne;
       } else {
           currentPlayer = playerTwo;
       }
       return currentPlayer;
   }
function startGame ( ) { let number = Math . floor ( Math . random ( ) * 2 ) ; if ( number == 0 ) { currentPlayer = playerOne ; } else { currentPlayer = playerTwo ; } return currentPlayer ; }
Randomise turn at beginning of game
Randomise turn at beginning of game