Back
Close
  • 11473

What will I learn?

Conditions

In this puzzle, you need to compare different values. You have to correlate character variables and integer variables.

A straightforward solution uses 8 conditions. There is a way to simplify it and use only 4 conditions.

External resources

Conditions

Statement

A basic problem to go a little bit further with conditions and variables: your program must allow Thor to reach the coordinates of the light of power in a 2D field.

Solve it

A higher resolution is required to access the IDE

Story

Thor's hammer, Mjöllnir, has lost all of its powers... Will you be able to guide Thor towards the light of power to make the hammer whole again?

Online Participants