Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Build letter E | Challenges
Ninja Game
course content

Conteúdo do Curso

Ninja Game

Ninja Game

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

book
Challenge: Build letter E

Welcome to the "Build Letter E" challenge!

Let's recap the ninja methods and features you've learned:

Ninja Methods:

  • goRight(), goLeft(), goUp(), goDown(): Move the ninja one cell in the specified direction.
  • pickSushi(): Pick up sushi from the map and add it to your inventory.
  • putSushi(): Place sushi from your inventory onto a cell.
  • objectUp(), objectDown(), objectRight(), objectLeft(): Determine the object in the next cell in the specified direction, returning "wall", "sushi", or "empty".

Programming Concepts:

  • Functions: Create reusable blocks of code to perform specific tasks.
  • Decomposition: Break down complex problems into smaller, manageable parts.
  • Loops: Use for and while loops to repeat actions.
  • Conditional Statements: Use if-else statements to make decisions based on conditions.
Tarefa
test

Swipe to begin your solution

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 5. Capítulo 2
js

ninja.js

toggle bottom row

book
Challenge: Build letter E

Welcome to the "Build Letter E" challenge!

Let's recap the ninja methods and features you've learned:

Ninja Methods:

  • goRight(), goLeft(), goUp(), goDown(): Move the ninja one cell in the specified direction.
  • pickSushi(): Pick up sushi from the map and add it to your inventory.
  • putSushi(): Place sushi from your inventory onto a cell.
  • objectUp(), objectDown(), objectRight(), objectLeft(): Determine the object in the next cell in the specified direction, returning "wall", "sushi", or "empty".

Programming Concepts:

  • Functions: Create reusable blocks of code to perform specific tasks.
  • Decomposition: Break down complex problems into smaller, manageable parts.
  • Loops: Use for and while loops to repeat actions.
  • Conditional Statements: Use if-else statements to make decisions based on conditions.
Tarefa
test

Swipe to begin your solution

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 5. Capítulo 2
Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
We're sorry to hear that something went wrong. What happened?
some-alt