pip install physicalturtle
draw polygons
forward(step)
right(angle)
Terminate loop by counting steps, or angles
tk.touch_right() # are we touching something on the right
end up with gap as turtle stops before hitting the solid line
NB - if turtle starts on solid line, it can’t move.
test if barrier still there, move forward a bit, test again ...