text: from models import Player
  
  def getEmptyBoard():
      return [ Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null, Player.Null ]
  
  def getCharacter (player):
      return 'X' if player == Player.User else 'O' if player == Player.Computer else ' '
  
  def printBoard (brd):
      print (' ')
      for i in range(3):
          # This is needed since the new board line always starts as
          # a multiple of 3.
          i *= 3
          print (f' {getCharacter(brd[i])} | {getCharacter(brd[i + 1])} | {getCharacter(brd[i + 2])}')
          if i != 6: print ('---+---+---')
      print (' ')
  