Course Content
Ninja Game
Ninja Game
If-Else Statements Practice. Clear the Storage
Your task is to help our ninja clear out all the sushi from a cluttered storage room. The storage room is a grid filled with sushi pieces scattered around, and it's your job to collect them all.
Task
Swipe to show code editor
Goal: Collect all sushi
Use if-else statements to check the surroundings and decide the ninja's actions
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 3
ninja.js
index.html
preset.js
If-Else Statements Practice. Clear the Storage
Your task is to help our ninja clear out all the sushi from a cluttered storage room. The storage room is a grid filled with sushi pieces scattered around, and it's your job to collect them all.
Task
Swipe to show code editor
Goal: Collect all sushi
Use if-else statements to check the surroundings and decide the ninja's actions
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 3
Switch to desktop for real-world practiceContinue from where you are using one of the options below