Tic Tac Toe Part 1 | 9.1.1
# Check diagonals if board[0][0] == board[1][1] == board[2][2] == player: return True if board[0][2] == board[1][1] == board[2][0] == player: return True
Next, we need to display the game board to the players. We can create a function to print the game board: 9.1.1 tic tac toe part 1
board = [ [" ", " ", " "], [" ", " ", " "], [" ", " ", " "] ] # Check diagonals if board[0][0] == board[1][1] ==
# Check columns for col in range(3): if board[0][col] == board[1][col] == board[2][col] == player: return True 9.1.1 tic tac toe part 1