railsbridge / docs

Curriculum for RailsBridge workshops
docs.railsbridge.org
Other
3.41k stars 454 forks source link

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

Open sarahjschultz opened 7 years ago

sarahjschultz commented 7 years ago

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:

EXPECTATION:

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