Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Tic_tac_toe_game_in_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def printBoard(xState, zState):
print(f"--|---|---")
print(f"{four} | {five} | {six} ")
print(f"--|---|---")
print(f"{senven} | {eight} | {nine} ")
print(f"{seven} | {eight} | {nine} ")

def checkWin(xState, zState):
wins = [[0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6]]
Expand Down Expand Up @@ -53,4 +53,4 @@ def checkWin(xState, zState):
print("Match Over")
break

turn = 1 - turn
turn = 1 - turn