CAN YOU SOLVE THE MAZE? ======================= ALPHA VERSION - 2017-03-28 Goal: Traverse a complete maze, and find how much gold is hidden in all the chambers! . 0 . 1 . 2 . 3 . 4 . . +---+---+---+---+---+ | | | 0 | 7 5 7 2 | 1 | | | | . + + +---+ + + | | | | 1 | 3 | 2 4 | 8 6 | | | | | . +---+---+ +---+ + | | | | | 2 | 1 4 | 0 | 3 | 6 | | | | | | . + + + + + + | | | | | 3 | 8 | 6 7 | 0 | 3 | | | | | | . +---+---+---+ + + | | 4 | 8 6 5 8 5 | | | . +---+---+---+---+---+ The solution is the total amount of gold in all chambers. (In this case: 115) API: POST / Start a new maze. Returns: { "maze_id": str, // your maze id "start": str, // code for (0, 0) } Example: POST / { "maze_id": "4hj7jjri3y27rp8atpkoy740z19rjw", "start": "u3fzzmz5bddjiirrsej7ugb8058d3r" } GET /// Returns data for coordinates specified by code. Returns: { 'exits': [ // list of exits, each one consist of: { 'x': int, // x coordinate of cell 'y': int, // y coordinate of cell 'code': // code for entering this cell }, ... ] 'score': int // secret score for this cell. Keep it! } Example: GET /4hj7jjri3y27rp8atpkoy740z19rjw/u3fzzmz5bddjiirrsej7ugb8058d3r/ { "exits": [ { "x": 0, "y": 1, "code": "kym11apcd1h8umh2a6fmhd17a14s2u" }, { "x": 1, "y": 0, "code": "f47ginj8ngkfrpwd4aspvruldvt9q4" } ], "score": 3 } POST /solve/// Try to solve the maze. `total` should be the total scores found in the maze. Note: Deletes the maze immediately. Returns: { "success": bool, // Answer is correct "time": float, // time in seconds since the maze was started } Example: POST /solve/1ie4p36c0f0svd0rgz46gfl8fgyq3u/2243/ { 'success': true, 'time': 17.263997793197632 }