generated from mwc/lab_iteration
I wasn't difficult to implement a for-loop for square.py because I do have some experience with programming and replacing the same instructions with no conditionals or decision-making required was easy enough. I took the repetitive pieces, counted them (squares have 4 sides) and used that as the basis for the instructions inside the loop, then set the for-loop to iterate those four repetitions. |
||
---|---|---|
.commit_template | ||
drawtiles.py | ||
poetry.lock | ||
pyproject.toml | ||
ranges.py | ||
square.py | ||
tile.py | ||
tile_grid.py |