Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
de-soot authored Dec 27, 2023
1 parent 9994352 commit 35b8f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def X_O():


def win():
# 9 total checks for 3 horizontal, vertical, and diagonal rows
# 8 total checks for 3 horizontal, 3 vertical, and 2 diagonal rows
if (board[0][0] == X_or_O and board[0][1] == X_or_O and board[0][2] == X_or_O) or\
(board[1][0] == X_or_O and board[1][1] == X_or_O and board[1][2] == X_or_O) or\
(board[2][0] == X_or_O and board[2][1] == X_or_O and board[2][2] == X_or_O) or\
Expand Down

0 comments on commit 35b8f0e

Please sign in to comment.