CSCI 107 Assignment 8


Recursive Diamonds

The purpose of this assignment is to help you gain experience using recursion to solve problems. Examine the following five drawings until you understand the pattern:

Starting Code

Download assignment-8.py and rename it according to the instructions above. Examine the code carefully until you fully understand it.

Note: the colormap global variable contains a list of five colors. If level is an integer between 0 and 4 inclusive, colormap[level] accesses the color in that position. For example, if level had the value 3, colormap[level] would be "green".

Requirements and Grading