problem in automating the puzzle
problem in automating the puzzle
hi guys i have already create a python solver for this puzzle but the only problem is i don't know how to get values from variables in the site
i think i need some help
i think i need some help
Simply pick a simple level (possibly level 0) and take a look into its source code.
You can find everything about the puzzle shown on the page in the source code.
Also, don't try to figure out the line number where the problem values, but rather a keyword where the problem values are in the same line. This way, the program is guaranteed to obtain the problem values, and the code is also quite simple in Python.
Personally I did beat this with C++ when I didn't know Python, but copy-pasting the problem every time to notepad was really a pain...
You can find everything about the puzzle shown on the page in the source code.
Also, don't try to figure out the line number where the problem values, but rather a keyword where the problem values are in the same line. This way, the program is guaranteed to obtain the problem values, and the code is also quite simple in Python.
Personally I did beat this with C++ when I didn't know Python, but copy-pasting the problem every time to notepad was really a pain...
Hi guys. With regards to automation, I have been able to extract all of the useful information from the source code, but when it submits the answer, I am always told that my answer sucked. I check my solution with the string representing the layout of the map obtained from the source code and find no problem.
Just wondering what I am doing wrong and how to fix it
Just wondering what I am doing wrong and how to fix it
well could be anything.....
since it tolds u that ur solution sucked means ur locked in.... so there must be something within the solution itself....could u show an example url u would use ?
since it tolds u that ur solution sucked means ur locked in.... so there must be something within the solution itself....could u show an example url u would use ?
Runaway Robot LvL 452
path: DDDRDRDDRRDDRRDRRRDDRRRRDDDRRDDDRRDRDRDRDRRRRRDRRDRRRRRDDRRDDDDRDRRRDRRDDRDRDRRRRRDRDDDRDDRDRRRRDDDDDDRRRRRRR
boom at 1 1
your solution sucked
Oo wtf?
path: DDDRDRDDRRDDRRDRRRDDRRRRDDDRRDDDRRDRDRDRDRRRRRDRRDRRRRRDDRRDDDDRDRRRDRRDDRDRDRRRRRDRDDDRDDRDRRRRDDDDDDRRRRRRR
boom at 1 1
your solution sucked
Oo wtf?
I can tell you how this works in perl:
It's probably very similar in python... check the online doc
Code: Select all
my $request = HTTP::Request->new(GET => "http://www.hacker.org/runaway/index.php?name=$user&password=$password");
$ua=LWP::UserAgent->new;
$response = $ua->request($request);
$session=$response->header("Set-Cookie");
[...] and later on:
my $header=HTTP::Headers->new;
$header->header('Set-Cookie' => $session);
my $request = HTTP::Request->new(GET => "http://www.hacker.org/runaway/index.php?name=$user&password=$password&path=$path",$header);