These are my first two ideas for project 3 'Coding Exhibition.' All my ideas convey a visual metaphor for the loop 'if, else.' My first idea above on the left is called "The Loop of Life." This idea consists of a plant which requires water in order to grow. In coding terms of how this "if, else" loop is said will be: if there is water in the watering bucket the plant grows, else plant dies. The code will look like this:
{if (bucket > Empty)
{growing = true;}
else
{growing = false;}
Bucket = Bucket + 1; //refers to amount of water decreasing each time from bucket.
Growing = Growing + 1; //refers to the size the plant grows each time after being watered.
}
I think this idea would be best displayed as a stop-motion video where the bucket of water would slowly reduce while the plant is growing and then the water would eventually run out and the plant would die.
I do like this idea, however compared to my other ideas I do not think this metaphor will be easily understood to someone who knows very little or no code.
In code language terms this idea can be explained as: if it is daylight you are awake, else you are sleeping.
The way this card works is the city buildings stay in the same place and when the card turns a night sky replaces the daylight sky. So the page that flips over has half the city cut out of it and fits the other page nicely.
If I decide to choose this idea it will be of created from a 4 sided fold piece of card.
No comments:
Post a Comment