If the work is shared and created with other people, if the work is not my own individual work, docstrings could be useful for effective communication. If all the team members has the decent computer programming skills, the codes themselves should be enough information for them to understand each others' work and inputs, but if some people are more advanced than others, and some are still learning, then docstrings could be very useful to have, it might not be the most effective or efficient ways to communicate among coders, but it might be much easier to start off a conversation. Yes, I will use docstrings. # -----------------------------------------------------------------

This commit is contained in:
Seoyeon Lee 2024-09-20 19:47:56 -04:00
parent 83c6dd5931
commit d2fb5cb35d
4 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

10
tile.py
View File

@ -11,12 +11,12 @@ def draw_tile_outline(size):
def draw_squiggle(size):
forward(size/4)
pencolor("black")
pencolor("red")
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/8)
quarter_arc_left(size/8)
quarter_arc_left(size/8)
quarter_arc_right(size/8)
left(90)
fly(size/4)
left(90)

View File

@ -10,7 +10,7 @@ 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.)
(It starts with x origin, and creates a square, and the same size of the square will be copied and generated until the given width is all used for drawing. Then, it comes back to the x origin and then go up one unit and repeats the same process to make a set of squares. Basically we have a two layer of a set of squares, and then it keeps going until it hits the full given height. The wiggly ziggly pattern for the title is added for each tile, and this is done by using tile fuction.The whole process looks like a putting tites or blocks from the bottom and adding more layers)
"""
for y in range(height):
for x in range(width):