input: Write a function to develop an AI Tic-Tac-Toe game using Python. The function should include a method to print the board, check for a win condition, get the computer's move, and play the game until a win or draw condition is met. If the input is not applicable then return nothing.
  playGame()
  assert playGame()==None
output: def playGame():
      board = [' ' for _ in range(9)]
  
      def print_board():
          print(f"{board[0]}|{board[1]}|{board[2]}")
          print("-+-+-")
          print(f"{board[3]}|{board[4]}|{board[5]}")
          print("-+-+-")
          print(f"{board[6]}|{board[7]}|{board[8]}")
  
      def check_win(player):
          win_conditions = [(0, 1, 2), (3, 4, 5), (6, 7, 8), (0, 3, 6), (1, 4, 7), (2, 5, 8), (0, 4, 8), (2, 4, 6)]
          for condition in win_conditions:
              if board[condition[0]] == board[condition[1]] == board[condition[2]] == player:
                  return True
          return False
  
      def get_computer_move():
          import random
          available_moves = [i for i, x in enumerate(board) if x == ' ']
          return random.choice(available_moves)
  
      current_player = 'X'
      while True:
          print_board()
          if current_player == 'X':
              move = get_computer_move()
          else:
              move = get_computer_move()
          board[move] = current_player
          if check_win(current_player):
              print_board()
              return
          if ' ' not in board:
              print_board()
              return
          current_player = 'O' if current_player == 'X' else 'X'