PS7 Guidelines
TASK 1: Hourglasses | ||
The hourglass function has exactly 4 parameters corresponding to the indentation, max number of characters per line, character1 and character 2.
|
||
The hourglass function handles the base case(s) correctly.
|
||
The hourglass function handles alternating characters across lines correctly.
|
||
The hourglass function uses RECURSION and no loops.
|
||
The function works correctly for the given test cases. | ||
The function makes effective use of variables. | ||
TASK 2: drawLs | ||
The drawLs function draws each L with the correct size and shape that matches the specifications given in the problem set.
|
||
The drawLs function takes exactly 2 parameters corresponding to size of the vertical side of the L and the number of levels.
|
||
The drawLs function uses recursion (and no looping) to correctly draw the L pattern
|
||
The drawLs function handles the base case correctly
|
||
The drawLs function draws the smaller Ls in the correct size and location at the shorter end of the L
|
||
The drawLs function draws the smaller Ls in the correct size and location at the top end of the longest vertical side of the L
|
||
The drawLs function produces the correct drawings with different levels and different sizes.
|
||
The drawLs function maintains a position and heading invariant (the turtle is back in the original position and orientation after invocation).
|
||
The run() function in drawLs.py contains an invocation of drawLs(200,4)
|