Skip to content

Commit

Permalink
Clarify maze instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
iHiD committed Jan 21, 2025
1 parent 41d6833 commit d6b8cfe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ The first exercise you solved was manually moving your character around the maze

To make that possible, we're giving you two new functions:

- `can_turn_left()`: returns `true` if the character can turn left.
- `can_turn_right()`: returns `true` if the character can turn right.
- `can_move()`: returns `true` if the character can move forward.
- `can_turn_left()`: returns `true` if the space to the character's left is not a wall.
- `can_turn_right()`: returns `true` if the space to the character's right is not a wall.
- `can_move()`: returns `true` if the space ahead of the character is not a wall.

With those two functions and the `move()`, `turn_left()` and `turn_right()` you had in Level 1, you can solve any maze.

Expand Down

0 comments on commit d6b8cfe

Please sign in to comment.