Armenian Flag explainer

Aim of the puzzle: Create the Armenian flag.
Walk through of solution: The Armenian flag has three horizontal stripes; the top stripe is red, the middle stripe is blue and the bottom stripe is orange. To re-create the flag there needs to be 9 boxes — 3 boxes tall and 3 boxes wide. drawBox(blue) will draw one blue box (updating the color will change the color of the box). newLine() is used to make boxes appear below other boxes.
Sample code solution:

drawBox(red);
drawBox(red);
drawBox(red);
newLine();
drawBox(blue);
drawBox(blue);
drawBox(blue);
newLine();
drawBox(orange);
drawBox(orange);
drawBox(orange);

Javascript Concepts: Calling Functions, Identifiers
Grasshopper Concepts: drawBox(), newLine()

5 Likes

I am doing everything that I am told to do. I don’t understand why I can’t get the puzzle.

2 Likes

drawBoxes (‘rrr’)
NewLine ( )
drawBoxes (‘bbb’)
NewLine ( )
drawBoxes (‘ooo’)

3 Likes