Decoding Challenge #3

Posted January 11, 2019 by ilee

Here is the code for Decoding Challenge #3

image

The Challenge

In the comment section below, tell us what you think these pieces of code are doing.

Comments

Submitted by Bob Coulter on Sat, 01/19/2019 - 13:27 · Permalink

When the fish eats the plankton, it gets energy. The plankton, not so much...

Answer

Submitted by Kaestner on Sat, 01/19/2019 - 13:27 · Permalink

When the fish hits the plankton, it feeds. The plankton disappears, and the fish gets more energy.

Answer

Submitted by mehagaman on Sat, 01/19/2019 - 13:27 · Permalink

Collide with plankton? Eat, get energy!

Answer

Submitted by Josh Bearman on Sat, 01/19/2019 - 13:28 · Permalink

Code Haiku:

If I hit plankton

energy increases one

plankton disappears

Answer

Submitted by Lytle on Sat, 01/19/2019 - 13:28 · Permalink

When a fish interacts with plankton, it increases it's energy and deletes the plankton (Eats it)

Answer

Submitted by sgibbs on Sat, 01/19/2019 - 13:28 · Permalink

Fish hit plankton.  Fish gain 1 energy.  Plankton die

Answer

Submitted by Vickey on Sat, 01/19/2019 - 13:28 · Permalink

fish will collide with plankton

Answer

Submitted by msag on Sat, 01/19/2019 - 13:28 · Permalink

When a fish hits a plankton, the fish gets 1 energy and the plankton is deleted.

Answer

Submitted by jlcordova6 on Sat, 01/19/2019 - 13:28 · Permalink

1. Fish bumps into plankton

2. Plankton is eaten

3.  Fish checks its current level of energy and increases that by 1

Answer