Course Content
Ninja Game
Ninja Game
If-Else Statements Practice. Follow the Sushi Snake
In this chapter, you'll have the opportunity to practice using if-else statements in the Ninja Game. Your task is to collect all the sushi on the map by following a path that resembles a snake.
Task
Swipe to show code editor
Goal: Collect all sushi on the map.
Use if-else statements to navigate and collect sushi.
Solution
Starter Map
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 4
ninja.js
index.html
preset.js
If-Else Statements Practice. Follow the Sushi Snake
In this chapter, you'll have the opportunity to practice using if-else statements in the Ninja Game. Your task is to collect all the sushi on the map by following a path that resembles a snake.
Task
Swipe to show code editor
Goal: Collect all sushi on the map.
Use if-else statements to navigate and collect sushi.
Solution
Starter Map
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 4
Switch to desktop for real-world practiceContinue from where you are using one of the options below