Here is the code for Decoding Challenge #3 The Challenge In the comment section below, tell us what you think these pieces of code are doing. Comments When the fish eats the plankton, it gets energy. The plankton, not so much... Answer When the fish hits the plankton, it feeds. The plankton disappears, and the fish gets more energy. Answer Collide with plankton? Eat, get energy! Answer Code Haiku: If I hit plankton energy increases one plankton disappears Answer When a fish interacts with plankton, it increases it's energy and deletes the plankton (Eats it) Answer Fish hit plankton. Fish gain 1 energy. Plankton die Answer fish will collide with plankton Answer When a fish hits a plankton, the fish gets 1 energy and the plankton is deleted. Answer 1. Fish bumps into plankton 2. Plankton is eaten 3. Fish checks its current level of energy and increases that by 1 Answer
When the fish hits the plankton, it feeds. The plankton disappears, and the fish gets more energy. Answer
When a fish interacts with plankton, it increases it's energy and deletes the plankton (Eats it) Answer
1. Fish bumps into plankton 2. Plankton is eaten 3. Fish checks its current level of energy and increases that by 1 Answer
Comments
When the fish eats the plankton, it gets energy. The plankton, not so much...
Answer
When the fish hits the plankton, it feeds. The plankton disappears, and the fish gets more energy.
Answer
Collide with plankton? Eat, get energy!
Answer
Code Haiku:
If I hit plankton
energy increases one
plankton disappears
Answer
When a fish interacts with plankton, it increases it's energy and deletes the plankton (Eats it)
Answer
Fish hit plankton. Fish gain 1 energy. Plankton die
Answer
fish will collide with plankton
Answer
When a fish hits a plankton, the fish gets 1 energy and the plankton is deleted.
Answer
1. Fish bumps into plankton
2. Plankton is eaten
3. Fish checks its current level of energy and increases that by 1
Answer