Documentation - How to Solve the Galactic Maze

Your goal is to write a function named solve(maze) that takes a 2D array representing the maze. The array is named maze and it provides all the details about walls, paths, start, and end points in the maze.

Maze Structure:

The maze is represented as a 2D array, where each element can be one of the following:

Accessing and Manipulating the Maze Array:

The maze is a 2D array where:

To solve the maze, you will need to traverse from the start position ('S') and find a path to the end position ('E') using valid movements. The movements must be made within the boundaries of the array and avoid walls ('#').

Available Movements:

Tips for Solving the Maze:

Back to Galactic Maze Challenge

We hope this documentation helps you understand how to solve the Galactic Maze Challenge. Happy coding!

CONFIDENTIAL