Debugging Challenge #2

Posted September 15, 2018 by ilee

Teachers, your challenge is to find 7 errors in the image below.

image

The modeler is trying to create 300 blue turtles shaped like spheres, and 100 red turtles, also shaped like spheres.
When the “run simulation” button is toggled, the turtles are supposed to move randomly around Spaceland, with a 15 degree “wiggle.”

GO!

The Challenge

Please put your answer in the comment section.

Winner

Here are the seven errors:  (Did you find them all?)

1. Script on wrong page.

2. Forgetting to delete everyone before creating new agents.

3. Typing in a color or shape instead of using the color or built-in shape block

4. Putting a create block inside another create block.

5. Creating and using the wrong kind of widget button. Most likely the programmer intended to put these commands in a loop, which is a toggle widget.

6. Left and right turns canceling each other out (resulting in no change in direction) OR forgetting to use random block to simulate “wiggle walk”.

7. Forgetting to use scatter block.

Comments

Submitted by ccorey on Sat, 09/22/2018 - 13:33 · Permalink

3 trait drop downs need to be added

The create do needs to not be inside each other 

add a when forever is toggles 

Answer

Submitted by ccorey on Sat, 09/22/2018 - 13:33 · Permalink

also ad right by 15 and left by -15

Answer

Submitted by ccorey on Sat, 09/22/2018 - 13:34 · Permalink

add*

Answer

Submitted by kweidle on Sat, 09/22/2018 - 13:34 · Permalink

3 errors are typing the color/size into the boxes that only accept numbers.

Create 200 turtles is embedded in the created 300 turtles.

Answer

Submitted by jkdiru on Sat, 09/22/2018 - 13:34 · Permalink

1:  create block inside create block

2:  set up should be in world

3 & 4:  the words red and blue are typed in rather than using a trait block

5:  the word sphere also needs a trait block

6:  the red turtles also needs a trait block identifying the shape

7:  need scatter block

Answer

Submitted by carodon21 on Sat, 09/22/2018 - 13:35 · Permalink

The colors red and blue are typed

nesting

the word sphere is typed

No red shape turtle identified

Answer

Submitted by pwilsonscience on Sat, 09/22/2018 - 13:35 · Permalink

they typed in the words for the colors instead of using the correct blocks 

can't type the word sphere 

the create 100 turtles should not be nested

the number forward should be random not 1

Answer

Submitted by carodon21 on Sat, 09/22/2018 - 13:36 · Permalink

The shape for the red turtle is identified

Answer

Submitted by pwilsonscience on Sat, 09/22/2018 - 13:36 · Permalink

shape trait for red turtles

Answer

Submitted by ameek on Sat, 09/22/2018 - 13:36 · Permalink

the tab inserts for the colors were left out and aren't there supposed to in shape inserts too. The insert for the shape for the red was left out. Isn't there another kind of tab for "toggled" instead of pushed?  There is something that is wrong with the wriggle too but not sure.  

Answer

Submitted by wkluesner on Sat, 09/22/2018 - 13:37 · Permalink

When setup pushed needs to be in the world.

When "Run Simulation" is TOGGLED, not pushed 

Create 100 turtles (red) - needs to be separate from the 300 turtles.

set my color -  needs a color block in both places - cannot type the color

set my shape - needs to be placed below the create 100 blue turtles block

set my shape - needs a shape block in both places - cannot type the shape.

Answer

Submitted by calston4 on Sat, 09/22/2018 - 13:39 · Permalink

1- Setup needs turtle code

2- Forever command needs to be after pushed code

3- Need direction of color and shape command 

4- Command needed after run simulation

5- Movement code needs insertion to entire code

Answer

Submitted by philolona on Sat, 09/22/2018 - 13:41 · Permalink

world setup

wiggle needs range

cant type in colors

scatter block

nesting issues

clear terrain

Answer

Submitted by msag on Sat, 09/22/2018 - 13:43 · Permalink

There is only 1 SET MY shape to Sphere.

Answer