Skip to content

Commit 51653a9

Browse files
committed
Prettified question 348.
1 parent af3d957 commit 51653a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

leetcode/medium/348_design_tic-tac-toe.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ class TicTacToe:
4949
self.diagonal1 += increment
5050
if row + col == self.n-1:
5151
self.diagonal2 += increment
52-
if any([self.check_horizontal(player, row), self.check_vertical(player, col), self.check_diagonals(player, row, col)]):
52+
if any([self.check_horizontal(player, row), \
53+
self.check_vertical(player, col), \
54+
self.check_diagonals(player, row, col)]):
5355
return player
5456
return 0
5557

0 commit comments

Comments
 (0)