Checkpoint 3) I do write docstrings, I think that they are

extremely useful to talk about How the program functions, I like being detailed especially for myself to look back at.
This commit is contained in:
Louis Cooper 2023-07-23 07:22:19 -04:00
parent 81efee0766
commit 2c8e3a2290
4 changed files with 3 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,5 @@
from turtle import *
#import random
def draw_tile(size):
"Draws one tile, which can be repeated to form a pattern."

View File

@ -10,7 +10,8 @@ from tile import fly
def draw_tile_grid(width, height, tile_size, tile_function):
"""Draws a (width x height) grid, with tile_function drawn on each tile.
(Your explanation here.)
(we are iterating over both the height and width here. it will run the tile_size function every time for the height and width, then fly to the beginning of the tile? Then it looks like
its moving up by a tile size. It also returns to the x, y origin.
"""
for y in range(height):
for x in range(width):