From 7a5a3c566ae288c2f6e7c9c9aafcd9aa67b09638 Mon Sep 17 00:00:00 2001 From: lfitchlee Date: Mon, 29 Sep 2025 10:25:56 -0400 Subject: [PATCH] upated comments about how tile drawing worked and the tile funtion. Need to update square and ranges. --- feedback.txt | 5 +++++ ranges.py | 2 +- tile.py | 16 +++++++++------- tile_grid.py | 5 ++++- 4 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 feedback.txt diff --git a/feedback.txt b/feedback.txt new file mode 100644 index 0000000..e4617fe --- /dev/null +++ b/feedback.txt @@ -0,0 +1,5 @@ +Don't forget to open the square.py file and update that function to only call +forward and turn once. I'm looking for you to write a for loop here. + +Start class: 1. update the square.py file with new square function. +2. Move on to the tile section. \ No newline at end of file diff --git a/ranges.py b/ranges.py index 2fa00d7..1ec709d 100644 --- a/ranges.py +++ b/ranges.py @@ -8,7 +8,7 @@ def print_all_numbers(maximum): print(number) def print_even_numbers(maximum): - "Prints all even integers from 0 to maximum." + "Prints all even integers from 0 to maximum. Replace pass with your own for loop" pass def print_odd_numbers(maximum): diff --git a/tile.py b/tile.py index 697cf8e..8e3fb98 100644 --- a/tile.py +++ b/tile.py @@ -10,15 +10,17 @@ def draw_tile_outline(size): square(size) def draw_squiggle(size): - forward(size/4) - pencolor("black") + forward(size/2) + pencolor("blue") left(90) - quarter_arc_right(size/4) - quarter_arc_left(size/4) - quarter_arc_left(size/4) - quarter_arc_right(size/4) + quarter_arc_right(size/2) + quarter_arc_left(size/2) + quarter_arc_left(size/2) + quarter_arc_right(size/2) left(90) - fly(size/4) + fly(size/5) + left(90) + fly(size) left(90) fly(size) left(90) diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..772eec4 100644 --- a/tile_grid.py +++ b/tile_grid.py @@ -10,7 +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.) + The code is making it go so many spaces that you put for the with-y + and then it runs the code making it once then jumps to the next + spot and does it again. Then runs the height and then the width again + until its done. """ for y in range(height): for x in range(width):