To start this assignment, download this zip file.
The following guide pages cover material needed for this assignment:
New Colors
Bit can now paint some new colors! There are too many to keep track of, so you won’t use them directly. Instead, you’ll do something like the following:
color = bit.get_color()
paint_column(bit, color)
Homework 2d — Variables
1. Color bars
For this problem, Bit wants to make bars of color. For this starting world:
the ending world should look like this:
There is a second world:
that Bit should turn into this:
The starter code is in color_bars.py
.
2. Wells and vines
For this problem, Bit wants to grow vines and fill wells. However, Bit doesn’t know what color the wells or vines should be until reaching a colored square. Bit lives in this world:
Bit’s job is to grow each vine and fill each well:
There is a second world that looks like this:
When bit is done, the world will look like this:
The starter code is in wells_and_vines_.py
.
3. More lines
Bit starts in a world with some incomplete lines in each row:
Bit should fill all of the lines in each row:
There is a second world:
That Bit should turn into this:
The starter code is in more_lines.py
.