Computer Science

# 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:

• 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.