docs icon indicating copy to clipboard operation
docs copied to clipboard

JavascriptBridge Snake-Game Curriculum: No callout of transition from if/else to case statement

Open sarahjschultz opened this issue 7 years ago • 0 comments

SUMMARY:

In Lesson 6, we help students set up the moveSegment function, using an if/else statement. In Lesson 7, without any explanation, we display the moveSegment function using a case statement and tell the students their snake.js file should look like that.

Students were confused by this switch and weren't sure where the changes came from. This transition is worth a callout/explanation.

STEPS TO REPRODUCE:

  • In Lesson 6 we define moveSegment as:screen shot 2017-05-06 at 11 04 40 am

  • In Lesson 7 we define moveSegment as:screen shot 2017-05-06 at 11 04 51 am

  • Note that we do not callout in the curriculum, this transition from if/else to case. Students found this confusing and wondered if they had missed a step.

EXPECTATION:

We would like to see an explanation of the transition from the if/else checking to case.

sarahjschultz avatar May 06 '17 17:05 sarahjschultz