generated from mwc/lab_iteration
	yes it was difficult to rewrite square() using a
for-loop. (checkpoint 1) I found that I understood how to work the rangest the easiest out of all three checkpoints. (checkpoint 2) I will probably use docstrings in my future codes. (checkpoint 3)
This commit is contained in:
		
							
								
								
									
										27
									
								
								tile.py
									
									
									
									
									
								
							
							
						
						
									
										27
									
								
								tile.py
									
									
									
									
									
								
							@@ -10,18 +10,31 @@ def draw_tile_outline(size):
 | 
			
		||||
    square(size)
 | 
			
		||||
 | 
			
		||||
def draw_squiggle(size):
 | 
			
		||||
    forward(size/4)
 | 
			
		||||
    pencolor("black")
 | 
			
		||||
    forward(size/4)
 | 
			
		||||
    left(90)
 | 
			
		||||
    quarter_arc_right(size/4)
 | 
			
		||||
    quarter_arc_left(size/4)
 | 
			
		||||
    quarter_arc_left(size/4)
 | 
			
		||||
    quarter_arc_right(size/4)
 | 
			
		||||
    forward(size/4)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward(size/3)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(size/2)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(size/3)
 | 
			
		||||
    right(90)
 | 
			
		||||
    forward (size/4)
 | 
			
		||||
    left(90)
 | 
			
		||||
    forward(size/4)
 | 
			
		||||
    left(90)
 | 
			
		||||
    fly(size/4)
 | 
			
		||||
    fly(size/4)
 | 
			
		||||
    left(90)
 | 
			
		||||
    fly(size)
 | 
			
		||||
    left(90)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def fly(distance):
 | 
			
		||||
    "Moves without drawing."
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user