I wrote a turtle program that would make square rooms, by moving in an expanding spiral digging above and below to make a 3-high room, I'd place a second in the ceiling and set it going to make it 5 or 6 high. It went forward 1, right, forward 1, right, forward 2, right, forward 2, right, etc...