Press the flag to input the number of sides. Press space to change the pen size. If bored, insert snake or random into the number of sides and press check.
The sprite moves the 500/ (number of sides) number of steps and turns 360/ (number of sides) degrees. It repeats this the (number of sides) times.