diff --git a/frontend/src/pages/ttt/ttt.ts b/frontend/src/pages/ttt/ttt.ts index 801c2a1..a8f47b3 100644 --- a/frontend/src/pages/ttt/ttt.ts +++ b/frontend/src/pages/ttt/ttt.ts @@ -37,7 +37,7 @@ class TTC { const checkRow = (row: number): ('X' | 'O' | null) => { if (this.board[row * 3] === null) return null; - if (this.board[row * 3] === this.board[row * 3+1] && this.board[row * 3 + 1] === this.board[row * 3 + 2]) + if (this.board[row * 3] === this.board[row * 3 + 1] && this.board[row * 3 + 1] === this.board[row * 3 + 2]) return this.board[row * 3]; return null; }