(row, col)
| 30 | return None |
| 31 | |
| 32 | def check_winner(row, col): |
| 33 | directions = [(0, 1), (1, 0), (1, 1), (-1, 1)] |
| 34 | for dr, dc in directions: |
| 35 | count = 1 + check_line(row, col, dr, dc) + check_line(row, col, -dr, -dc) |
| 36 | if count >= 4: |
| 37 | return True |
| 38 | return False |
| 39 | |
| 40 | def check_line(row, col, delta_row, delta_col): |
| 41 | count = 0 |
no test coverage detected