Debugging Challenge #1

Posted September 13, 2018 by ilee

My code looks okay but how come my turtles aren't red?image

image

The Challenge

Can you find the error in this project?  Put your answer in the comment.

Winner

In this case, the color red was typed in causing StarLogo Nova to default to the color 0 or black.

The user should use a color block with red selected.

image

Comments

Submitted by tracyeefoster on Sat, 09/22/2018 - 13:26 · Permalink

Shouldn't that be underneath the turtle tab.

Answer

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

You forgot to program in a color code.

Answer

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

The code is not working because you cannot write in red you need the color and pull down with the color list block.

Answer

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

A possible fix: "set my color to red" needs to be placed before the block that reads "create 26 turtles..."

Answer

Submitted by mgrow on Sat, 09/22/2018 - 13:28 · Permalink

should the "set my" block be place outside the create, but still within the setup code?

Answer

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

Write the color code in the turtle tab.

Answer

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

Otherwise you did not proper code for color.

Answer

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

You can only type numbers into that particular code box.

Answer

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

maybe because it's nested and should be below

Answer

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

shouldn't there be a scatter and delete but not sure if this also needs to be in the turtle tab as well.

Answer

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

need a trait block

Answer

Submitted by heaster on Sat, 09/22/2018 - 13:30 · Permalink

The wrong blocks are used

Answer