input: Write a function to create an AI Tic-Tac-Toe game that follows the described Python implementation.
  assert drawBoard(['-','X','O','X','O','X','O','X','O','X']) == None
  assert checkWin(['-','X','X','X','O','O','-','-','-','-'], 'X') == True
  assert getComputerSpot(['-','X','O','-','-','-','-','-','-','-'], 'O') in [3, 4, 5, 6, 7, 8, 9]
  assert playGame() in [None, "You won!", "The game is drawn!", "The game is drawn!"]
output: def drawBoard(board):
      print(f"{board[7]}|{board[8]}|{board[9]}")
      print("-+-+-")
      print(f"{board[4]}|{board[5]}|{board[6]}")
      print("-+-+-")
      print(f"{board[1]}|{board[2]}|{board[3]}")
  
  def checkWin(board, player):
      win_patterns = [
          [1, 2, 3], [4, 5, 6], [7, 8, 9],  # rows
          [1, 4, 7], [2, 5, 8], [3, 6, 9],  # columns
          [1, 5, 9], [3, 5, 7]              # diagonals
      ]
      for pattern in win_patterns:
          if all(board[i] == player for i in pattern):
              return True
      return False
  
  def getComputerSpot(board, computer):
      import random
      available_spots = [i for i in range(1, 10) if board[i] == '-']
      return random.choice(available_spots)
  
  def playGame():
      board = ['-'] * 10
      players = ['X', 'O']
      current_player = players[0]
      while True:
          drawBoard(board)
          if current_player == 'X':
              spot = int(input("Enter your move (1-9): "))
          else:
              spot = getComputerSpot(board, current_player)
          board[spot] = current_player
          if checkWin(board, current_player):
              drawBoard(board)
              return "You won!" if current_player == 'X' else "The game is drawn!"
          if all(board[i] != '-' for i in range(1, 10)):
              drawBoard(board)
              return "The game is drawn!"
          current_player = players[(players.index(current_player) + 1) % 2]