Popcorn Hack 2

Create a 3 by 3, 2D list that represents a tictactoe board. Use “X” for X, “O” for O, and None for empty tiles.

Ex. board = [[“X”,”None”,”O”],        [“X”,”O”,”None”],        [“O”,”None”,”X”]]

Iterate over the board and identify whether it is player X’s or player O’s turn.

Hint: count the number of moves(non-None). (X goes first)

Optional: use console.error() to report an error if the board is illegal (ex. 7 “X”s and 2 “O”s)

Done in different file (Iterations-P3)