generated from mwc/lab_iteration
For Checkpoint 3 I added in the coordinates used for the
code. To me, this provided more information for thereader. I thinkI would use docstrings. They are helpful because they put what the code does info "laymans" terms.
This commit is contained in:
@@ -10,8 +10,10 @@ 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.)
|
||||
Draws a (width x height) grid using x, y coordinates, with tile_function drawn on each
|
||||
tile )
|
||||
"""
|
||||
|
||||
for y in range(height):
|
||||
for x in range(width):
|
||||
tile_function(tile_size)
|
||||
|
||||
Reference in New Issue
Block a user