# Mirror your partner's movement around the center X mark.
# Vectors can be thought of as an x, y position
# Vectors can also represent the distance and direction between two positions
# use Vector.subtract(vector1, vector2) to find the direction and distance from vector2 to vector1
# use Vector.add(vector1, vector2) to find the position you get when you start from vector1 and follow vector
What do I put here
# Create a new Vector at the center X point
center = Vector(40, 34)
# A unit's position is actually a Vector!
partner = hero.findByType("peasant")[0]
while True:
vector = Vector.subtract(vector1, vector2)
# Second, find the position your hero should moveTo starting from center, and following vector.
moveToPos = Vector.add(vector1, vector2)
# Third, move to the moveToPos position.
hero.move(moveToPos.pos)
pass

You need to find the distance (and direction) from your partner’s position, and the center point. You would do this by using Vector.subtract(). Don’t use vector1 or vector2, these are not defined.

# Mirror your partner's movement around the center X mark.
# Vectors can be thought of as an x, y position
# Vectors can also represent the distance and direction between two positions
# use Vector.subtract(vector1, vector2) to find the direction and distance from vector2 to vector1
# use Vector.add(vector1, vector2) to find the position you get when you start from vector1 and follow vector2
# Create a new Vector at the center X point
center = Vector(40, 34)
# A unit's position is actually a Vector!
partner = hero.findByType("peasant")[0]
while True:
vector = Vector.subtract() <-- HERE!!!!!!
# Second, find the position your hero should moveTo starting from center, and following vector.
moveToPos = Vector.add(vector1, vector2)
# Third, move to the moveToPos position.
hero.move(moveToPos.pos)
pass

# Mirror your partner's movement around the center X mark.
# Vectors can be thought of as an x, y position
# Vectors can also represent the distance and direction between two positions
# use Vector.subtract(vector1, vector2) to find the direction and distance from vector2 to vector1
# use Vector.add(vector1, vector2) to find the position you get when you start from vector1 and follow vector2
# Create a new Vector at the center X point
center = Vector(40, 34)
# A unit's position is actually a Vector!
partner = hero.findByType("peasant")[0]
while True:
vector = Vector.subtract(hero.pos, partner.pos)
# Second, find the position your hero should moveTo starting from center, and following vector.
moveToPos = Vector.add(center, vector)
# Third, move to the moveToPos position.
hero.move(moveToPos)
pass