Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
If-Else Statements Practice. Follow the Sushi Snake | If-Else Statements
Ninja Game
course content

Course Content

Ninja Game

Ninja Game

1. Basic Controls
2. Functions
3. Loops
4. If-Else Statements
5. Challenges

book
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
test

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 4
js

ninja.js

html

index.html

js

preset.js

toggle bottom row

book
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
test

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 desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 4
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
We're sorry to hear that something went wrong. What happened?
some-alt