board = [0,1,2,3,4,5,6,7,8] def DrawBoard(): print() print(" | | ") print(f" {board[0]} | {board[1]} | {board[2]} ") print("_____|_____|_____") print(" | | ") print(f" {board[3]} | {board[4]} | {board[5]} ") print("_____|_____|_____") print(" | | ") print(f" {board[6]} | {board[7]} | {board[8]} ") print(" | | ") print() def GetWinner(): if board[0] == board[1] == board[2] or board[0] == board[4] == board[8] or board[0] == board[3] == board[6]: winner = board[0] elif board[1] == board[4] == board[7]: winner = board[1] elif board[2] == board[5] == board[8] or board[2] == board[4] == board[6]: winner = board[2] elif board[3] == board[4] == board[5]: winner = board[3] elif board[6] == board[7] == board[8]: winner = board[6] else: winner = "None" return winner playerOne = "◯" playerTwo = "✖"