Your task is to implement TicTacToe class
should return x or o
should properly update class state (change current player, update marks storage etc.)
should return true if game is finished (e.g. there is a winner or it is a draw)
should return winner symbol (x or o) or null if there is no winner yet
should return true if there is no more fields to place a x or o
should return true if there is no more turns and no winner
should return matrix[row][col] value (if any) or null
- Install nodejs (>= v6.9.4)
- open bash in this folder
npm install
npm testnpm start© R1ZZU