diff --git a/__pycache__/tile.cpython-310.pyc b/__pycache__/tile.cpython-310.pyc new file mode 100644 index 0000000..081c042 Binary files /dev/null and b/__pycache__/tile.cpython-310.pyc differ diff --git a/__pycache__/tile_grid.cpython-310.pyc b/__pycache__/tile_grid.cpython-310.pyc new file mode 100644 index 0000000..7d53fb2 Binary files /dev/null and b/__pycache__/tile_grid.cpython-310.pyc differ diff --git a/tile.py b/tile.py index 697cf8e..e994907 100644 --- a/tile.py +++ b/tile.py @@ -1,4 +1,5 @@ from turtle import * +#import random def draw_tile(size): "Draws one tile, which can be repeated to form a pattern." diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..1bc88ff 100644 --- a/tile_grid.py +++ b/tile_grid.py @@ -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):