Lazy Maze
How long does the solution take to find on your implementations? I'm using Perl and LWP and I've been running for a while here.. Serious buyers remorse. That and I've thought of two decent optimisations in the meantime.
- Edit: Solved -
Just a tip.. be very careful how you check your navigation.. let's just say checking for "boom" as a turnaround point might make you miss "boom! the answer is: xxxxxxxxxxx" (this is just an example, it doesn't look like this!)
- Edit: Solved -
Just a tip.. be very careful how you check your navigation.. let's just say checking for "boom" as a turnaround point might make you miss "boom! the answer is: xxxxxxxxxxx" (this is just an example, it doesn't look like this!)
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
Hmm. I *think* I have mapped out the entire maze, but I did not find an exit. So probably I have made a mistake somewhere. Could somebody please have a look at my map layout (I could send it to you as per private message) and give me a hint on what went wrong?
EDIT: Solved it now.
EDIT: Solved it now.
Last edited by AMindForeverVoyaging on Wed Jul 13, 2011 4:36 pm, edited 1 time in total.
If you take the shortest path, how many steps do you have to take? (You can add +5 or +5% if you don't want to spoil something.) I just want to know if I have to wait the whole night or if my programm will come to an and soon. At the moment I got: "DRRDDDDDDRRRRRRUURRDDDDLLDDDDDDDDDDR" ... seems to get big.
Answer to myself: Between 100 and 150 steps for my path.
Answer to myself: Between 100 and 150 steps for my path.
I request either a offline Version of the maze or a faster server. The 2 second response time the server has at the moment makes solving this a trial of patience...
EDIT:
Just after I posted this came:
My script has been running for 1 1/2 hours and now all is lost...
EDIT:
Just after I posted this came:
503 Service Temporarily Unavailable
My script has been running for 1 1/2 hours and now all is lost...
Last edited by whoami on Mon Oct 24, 2011 9:34 am, edited 1 time in total.
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
While it is true that the server's response time sucks, a 503 error definitely does not mean that you need to completely restart your script. I have had several of those when doing the 'Cavern Master' challenge, it simply means that you need to detect for errors and in such a case, you need to reload the page (= send the last request again).
Unlike the cavern challenges this one does not save its state... Meaning I would have to save it within my script but the algorithm(recursive backtracking) I use makes this a bit hard...AMindForeverVoyaging wrote:While it is true that the server's response time sucks, a 503 error definitely does not mean that you need to completely restart your script. I have had several of those when doing the 'Cavern Master' challenge, it simply means that you need to detect for errors and in such a case, you need to reload the page (= send the last request again).
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
-
- Posts: 5
- Joined: Wed Jun 13, 2018 1:59 pm
- Location: India
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
-
- Posts: 5
- Joined: Wed Jun 13, 2018 1:59 pm
- Location: India
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany
-
- Forum Admin
- Posts: 496
- Joined: Sat May 28, 2011 9:14 am
- Location: Germany