def drawComputerMoves(image): # Draws all the computer's moves on the frame for move in board.getSquares('O'): x = regions.center()[move][0] y = regions.center()[move][1] cv2.rectangle(image, (x - 40, y - 40), (x + 40, y + 40), (255, 0, 0), 10)
def drawOpponentMoves(image): # Draws all the opponent's moves on the frame for move in board.getSquares('X'): x = regions.center()[move][0] y = regions.center()[move][1] cv2.circle(image, (x, y), 40, (0, 0, 255), 10)