BYU logo Computer Science

To start this assignment, download this zip file.

Project 1 - Bit

1. Y

Draw two Ys. Bit starts in this world:

Y start

Bit should finish in a world that looks like this:

Y finish

Be sure you have Bit’s position and direction correct as well!

2. Go Go Go

Bit starts in a world like this:

Go start

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:

Go finish

3. Grassy Field

Fill the field with grass! Bit starts in a world like this:

Grassy field start

When Bit is done, the world should look like this:

Grassy field finish

Note: the world can be any size.

4. Banner

Bit starts in a world like this:

Banner start

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:

Banner finish

Grading

ActivityPoints
y.py25 points
go_gbr.py25 points
grassy_field.py25 points
banner.py25 points