Tic Tac Toe

features

  • announces the winner
  • resets game button
  • opacity effect on selected square
  • disable clicking on filled square

approach

  • div to contain the gameboard
  • div for the individual gameboard
  • player turn function
  • array to store game data
  • function win game data
  • reset game, empty array, clear everything, change heading back.

if given more time, some features that would be good to add,

  • player move indicator (who's turn)
  • mouse indicator (which piece to be drawn next)
  • recognises draw game and offer a restart game option
  • alert/visual cues if the box has been filled.
  • animated player piece
  • score board
  • play with cpu option.