generated from mwc/lab_iteration
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user