/hw3-tic-tac-toe-js-Jcastro197

hw3-tic-tac-toe-js-Jcastro197 created by GitHub Classroom

Primary LanguageJavaScript

Open in Visual Studio Code

Tic-Tac-Toe

  • Started off by changing a details on status bar
    Status bar text changes color when player switches
  • Console shows next Players turn
  • Added functions to handle computer moves
  • Needed to call result validations inside handle player change
  • Changed handle result validation function, to handle computer cell played
  • Added computer play function to loop through the empty cell and plug its current value in the empty cell