What will I learn?
This puzzle makes you use an associative array that make a link between arbitrary types and directions. You also need to store some values in a 2D array.
The goal of this puzzle is to predict the path that a character will take in a labyrinth according to the topology of the rooms. The resolution of this exercise intensively focus on the correct usage of associative arrays. If you can manage them correctly and creates the right associations, your final code could be quite short.
A higher resolution is required to access the IDE
Indiana is trapped in a tunnel, help him escape!
In this first level, you just have to get familiar with how the tunnel works: your goal is simply to predict Indiana movements within this tunnel.
This puzzle is part of a series of two exercices proposed as during “The Last Crusade” contest. Once done you should head towards level 2 where things may just get a little thougher!