simple python, simple conditions
\nclass Solution:\n    def validTicTacToe(self, board: List[str]) -> bool:\n        SIZE = 3\n        turns = 0\n        rows, cols  = [0] * SIZE, [0] * SIZE\n 
```\nclass Solution:\n    def validTicTacToe(self, board: List[str]) -> bool:\n        SIZE = 3\n        turns = 0\n        rows, cols  = [0] * SIZE, [0] * SIZE\n        diag1 = diag2 = 0\n        for i in range(SIZE):\n            for j in range(SIZE):\n                if board[i][j] == \'X\':\n                    turns += 1\n                    rows[i] += 1\n                    cols[j] += 1\n                    if i == j:\n                        diag1 += 1\n                    if i + j == SIZE - 1:\n                        diag2 += 1\n                elif board[i][j] == \'O\':\n                    turns -= 1\n                    rows[i] -= 1\n                    cols[j] -= 1\n                    if i == j:\n                        diag1 -= 1\n                    if i + j == SIZE - 1:\n                        diag2 -= 1\n        \n        wonX = (3 in rows) or (3 in cols) or diag1 == 3 or diag2 == 3\n        wonO = (-3 in rows) or (-3 in cols) or diag1 == -3 or diag2 == -3\n        \n        if turns == 0 and not wonX or turns == 1 and not wonO:\n            return True\n        return False\n```
[]