Question: Dragon curves. Compose a python program (use sttdraw) to write the instructions for drawing the dragon curves of order 0 through 7. The instructions are

Dragon curves. Compose a python program (use sttdraw) to write the instructions for drawing the dragon curves of order 0 through 7. The instructions are strings of F, L, and R characters, where F means draw line while moving 1 unit forward, L means turn left, and R means turn right. A dragon curve of order n is formed when you fold a strip of paper in half n times, then unfold it to right angles. The key to solving this problem is to note that a curve of order n is a curve of order n1 followed by an L followed by a curve of order n1 traversed in reverse order, and then to figure out a similar description for the reverse curve.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!