A higher resolution is required to access the IDE
Learning Opportunities
This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.
Statement
Goal
The maze is aYou will also be given an optional extra tile that you can push one time into the even numbered rows (from left or right) or columns (from top or bottom) to shift all tiles in that row or column by one and open the pathway to the treasure. If the extra tile is used it takes the position on the edge of the map where it is inserted, and every tile in that row/column is shifted until the tile on the opposite edge is pushed off and removed from the map. Rows and columns are numbered
Find the path to the treasure, either through the original maze or after making one shift with the optional tile.
Each puzzle will have exactly one possible path to the treasure.
Tile key:
Input
Lines 1-7: one row of tiles in the map.
Line 8: the character representing your extra tile.
Line 8: the character representing your extra tile.
Output
7 lines: the final map of tiles showing the path to the treasure. Tiles not used in the path must be changed to # .
Constraints
There is exactly one P and one T in each case.
Example
Input
+^PvT-+ +v^v|v- +|>#v|< >^<<^-- ->^#<<v <<^++^^ +-<->|+ >
Output
##P>T## ####### ####### ####### ####### ####### #######
A higher resolution is required to access the IDE