# CSCI 107 Assignment 7

- Due Date: Friday, November 4th no later than 11:59 p.m.
- You must complete this assignment individually.

## Manufactoria

Check out the logic game
Manufactoria and
see if you can solve the first three puzzles. Feel free
to solve additional puzzles if you like!

For this assignment, we will use Python to simulate the game
of Manufactoria to solve two different problems. Use
Manufactoria.py as the starting point.
The strings to be simulated will consist of some combination of
reds ("r") and blues ("b"). For example, the string "brrbb" represents
the following sequence of colors: first blue, then red, then red, then
blue and finally blue.

## The Assignment - 100 points

### Requirements and Grading

- 40 points - The function three_or_more_blues is correct.
The function should accept any string that contain three or
more blues. For example, "brbrb" should be accepted but "rrbbrrr"
should not be.
For each incorrect answer, 10 points will be deducted.
- 40 points - The function alternating_colors is correct.
Let "x" be the starting symbol (either "r" or "b") and let "y"
be the other color ("r" if "x" is "b" and "b" if "x" is "r").
The function should accept strings that conform to
the following pattern: empty-string, x, xy, xyx, xyxy, etc.
For each incorrect answer, 10 points will be deducted.
- 10 points - The Python solution is easy to understand and
does not contain unnecessary code.
- 10 points - Comments are used appropriately in the solution.

### Submission

Place the solution in a file named **Manufactoria.py**
and submit it in the D2L Assignment 7 Dropbox no later than 11:59 p.m.
on Friday, November 4th.
Late submissions receive no credit, but partial credit can be earned
by making an ontime submission.