input: Write a function to develop an AI-based Tic-Tac-Toe game using Python. The game should allow a human player to play against the computer, with the computer making random moves if no winning or blocking move is available. The function should handle the display of the game board, checking for a win condition, and managing the turns between the human player and the computer. The function should be named `playGame`.
  
  assert playGame()
  assert playGame()
  assert playGame()
  assert playGame()
  assert playGame()
output: def playGame():
      import random
  
      def print_board(board):
          for row in board:
              print(" | ".join(row))
              print("-" * 5)
  
      def check_winner(board, player):
          for row in board:
              if all([cell == player for cell in row]):
                  return True
          for col in range(3):
              if all([board[row][col] == player for row in range(3)]):
                  return True
          if all([board[i][i] == player for i in range(3)]) or all([board[i][2 - i] == player for i in range(3)]):
              return True
          return False
  
      def is_full(board):
          return all([cell != " " for row in board for cell in row])
  
      def get_available_moves(board):
          return [(i, j) for i in range(3) for j in range(3) if board[i][j] == " "]
  
      def computer_move(board):
          available_moves = get_available_moves(board)
          return random.choice(available_moves)
  
      board = [[" " for _ in range(3)] for _ in range(3)]
      current_player = "X"
  
      while True:
          print_board(board)
          if current_player == "X":
              row, col = map(int, input("Enter row and column (0-2): ").split())
              if board[row][col] != " ":
                  print("Invalid move, try again.")
                  continue
          else:
              row, col = computer_move(board)
  
          board[row][col] = current_player
  
          if check_winner(board, current_player):
              print_board(board)
              print(f"Player {current_player} wins!")
              return True
  
          if is_full(board):
              print_board(board)
              print("It's a tie!")
              return True
  
          current_player = "O" if current_player == "X" else "X"