To start this assignment, download this zip file.
Project 1 - Bit
Reminder, problems 2-4 need to pass the two separate worlds for each problem.
1. Y
Draw two Ys. Bit starts in this world:
Bit should finish in a world that looks like this:
Be sure you have Bit’s position and direction correct as well!
2. Go Go Go
Bit starts in a world like this:
Help Bit follow these instructions:
- paint green until the green square, then turn right
- paint blue until the blue square, then turn left
- paint red until the red square
When Bit is done, the world should look like this:
Note: the two separate worlds are different sizes, with different distances between the green, blue, and red squares. Make sure that you use while loops in your solution to pass both worlds.
3. Grassy Field
Fill the field with grass! Bit starts in a world like this:
When Bit is done, the world should look like this:
Note: the world can be any size.
4. Banner
Bit starts in a world like this:
In each column, paint red up to and including the green square.
The solution to this problem is very similar to the solution to Grassy Field. Instead of moving until Bit is blocked, what should Bit do instead?
When Bit is finished, the world should look like this:
Note: the second world is a bit larger, and bit should end up painting a staircase rather than a banner.
Grading
Activity | Points |
---|---|
y.py | 25 points |
go_gbr.py | 25 points |
grassy_field.py | 25 points |
banner.py | 25 points |
Grading will be focused on the correct use of concepts learned from Unit 1 as well as decomposition of the problems into separate functions.
If your answers only include one function, you will NOT get full points.