Project 3.4: Light Puzzle
Create a program that change color on a click in a tricky manner

REQUIREMENTS

This program is a puzzle game where the user tries to make all of the boxes the same color - but each time they click, it changes both the current box and all adjacent boxes colors.

Specifications

Since arrays can be challenging, additional support is provided below - use the outline!

PART ONE - DISPLAY

Test:  
Your program displays a line of boxes in three different colors.

PART TWO - CLICK


Test: 
Clicking on a cell should change a single element

PART THREE - NEIGHBORS

Test:

  Clicking on a cell should change up to three boxes at once.  Test the edges + make it all one color.

PART FOUR - WIN

EXAMPLE: RUNNING PROGRAM

Click here to download a running version of the program. 

Starting State

Solved Puzzle