I've built several different ways to create a square (and other polygons). Let's compare them side-by-side in pairs, using the Same But Different routine. First: the behaviour of each pair. Then: the code inside. Space to clear; Keys A-J (and Y-Z) to make each shape.
Inspiration and input from @MrGilchrist5. Debuted at @MakeMathMoments virtual summit 2023!