Apply suggestion from @Copilot
Added spacing between operands Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e0f73ce514
commit
7005d644ee
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue