2

I'm trying to solve this problem which asks to make a snowflake, so far I tried using forward by 100 pixels and right by 90 degrees but I only made it do a shape in the left bottom corner, then I did a square and it said I messed up...

Could somebody give a hint on what I should do?

Here's a screenshot of the problem with my solution so far :

The problem with my solution so far

PS: this is my dad's account.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
noahlz
  • 10,202
  • 7
  • 56
  • 75
  • I don't see how this has anything to do with JavaScript. I can only advice you to read the description again: *"Let's create a new snowflake by using the “Repeat" block to repeat a parallelogram 4 times, turning right by 90 degrees between each parallelogram"*. The parallelogram is already built for you. All you have to do is add the repeat block and adjust the "turn right" value. – Felix Kling Nov 27 '14 at 00:03
  • Ok, changed tag. Unfortunately, there's no tag for "novice" or "learning" – noahlz Nov 27 '14 at 00:05
  • On your solution, please click on *Show code* in the top right corner and edit in the Javascript code into your question. –  Nov 27 '14 at 00:06
  • FWIW, this has less to do with programming, and more with understanding and applying the instructions. – Felix Kling Nov 27 '14 at 00:08
  • @Felix True...that is how most programming tutorials work, no? – noahlz Nov 27 '14 at 00:14

1 Answers1

4

You need to draw 4 parallelograms and each parallelogram is constructed by 4 lines.
The code below draws two line twice (= 4 lines) then rotates 90 degrees and repeats all this 4 times.

Snowflake

Sani Huttunen
  • 23,620
  • 6
  • 72
  • 79