Teach me how to hack this puzzle
Teach me how to hack this puzzle
Somebody wanna teach me to hack this one? I saw on the score board that the score list is 513, 513, ..., and 513.. How it could be? I solved this puzzle by myself hardly... But i'm got stucked in lvl 51... It's god damn hard!
~� dorahan �~
HkRkoz al KuwaiT 2019 HaCkEr 101
HkRkoz al KuwaiT 2019 HaCkEr 101
Learn how to write a program? pick your favorite language java,c,c++,c#,ruby,python,lisp and learn how to download webpages in that language, and parse out of the html the maze data.
After that, you have to figure out how you want to solve the problem. The simplest method (but the longest) is to just search through all possible answers until you find an answer that solves the problem. (try each instruction length, and each combination of down(s) and right(s) until your robot makes it to the edge).
However, I don't think you'll get to level 513 with that method. You can either work on ways of speeding up your searching techniques and/or simplifying the problem so there are fewer possibilities to search.
After that, you have to figure out how you want to solve the problem. The simplest method (but the longest) is to just search through all possible answers until you find an answer that solves the problem. (try each instruction length, and each combination of down(s) and right(s) until your robot makes it to the edge).
However, I don't think you'll get to level 513 with that method. You can either work on ways of speeding up your searching techniques and/or simplifying the problem so there are fewer possibilities to search.
-
- Posts: 17
- Joined: Mon Jan 26, 2009 10:02 pm
Hmmm... im probably going to use python 3.0, victory here i come! In several decades i may have completed the first challenge at this rate, i don't understand how to download a web page, could someone put this page into simpleton terms for me please : http://mail.python.org/pipermail/python ... 18178.html
I don't even get point 1
I don't even get point 1
That webpage is talking about submitting a web form through python. This isn't really necessary for the challenge as the challenge supports submitting your answer through the URL.
Take a look at http://docs.python.org/library/urllib.html Thats the python library you'd use to download the challenge & upload your answer.
Take a look at http://docs.python.org/library/urllib.html Thats the python library you'd use to download the challenge & upload your answer.
-
- Posts: 17
- Joined: Mon Jan 26, 2009 10:02 pm
[quote="MerickOWA"]That webpage is talking about submitting a web form through python. This isn't really necessary for the challenge as the challenge supports submitting your answer through the URL.
Take a look at [url]http://docs.python.org/library/urllib.html[/url] Thats the python library you'd use to download the challenge & upload your answer.[/quote]
ahh thank you, its going to be slow progress (especially since I've got GCSE's coming up) but ill post again once I've made my first solving program.
Take a look at [url]http://docs.python.org/library/urllib.html[/url] Thats the python library you'd use to download the challenge & upload your answer.[/quote]
ahh thank you, its going to be slow progress (especially since I've got GCSE's coming up) but ill post again once I've made my first solving program.
-
- Posts: 17
- Joined: Mon Jan 26, 2009 10:02 pm
I've desided on a new tactic, which is the easyest
I've decided on a new tactic, which is the easiest code to download web pages for?
It's pretty easy in most modern languages. e.g. in Python 2:
That should give you an array of lines.
In Python 3 it's been moved around a bit - I think you need:
But I don't have Python 3 installed, so I can't check it for sure.
Once you've got the data you'll have to parse it to extract useful things like the board size and contents, then write the fun bit of your code that figures out a good route.
It's actually probably better to do the fun bit first, though, so you can make test boards locally without having to wait for web requests from time to time. All my hacker.org solvers support this, and cache any downloads locally as well so I can replay them later - it's good to have some smaller boards available when you're profiling an algorithm and want faster results.
Code: Select all
import urllib
pagedata = urllib.urlopen("http://www.hacker.org").read().splitlines()
In Python 3 it's been moved around a bit - I think you need:
Code: Select all
import urllib.request
pagedata = urllib.request.urlopen("http://www.hacker.org").read().splitlines()
Once you've got the data you'll have to parse it to extract useful things like the board size and contents, then write the fun bit of your code that figures out a good route.
It's actually probably better to do the fun bit first, though, so you can make test boards locally without having to wait for web requests from time to time. All my hacker.org solvers support this, and cache any downloads locally as well so I can replay them later - it's good to have some smaller boards available when you're profiling an algorithm and want faster results.
- Nick-Aotmzgin
- Posts: 64
- Joined: Sun Jun 14, 2009 11:01 am
- Location: Microsoft Labs
This is probably the easiest game to bot. The approach I would take would be:
1. Extract the source into a textfile
2. Read the textfile containing the source for the text-based version of the grid
3. Map it using a 2d array and store every possibility to get to a green square just by going right or down
4. Look for a repeated pattern between value x and y (The max and min values needed to set the robot off)
5. Shell the URL of the level + your solution (saves using a program to interact with the applett)
There you have it. It's up to you which language you use and using what methods. Good luck.
1. Extract the source into a textfile
2. Read the textfile containing the source for the text-based version of the grid
3. Map it using a 2d array and store every possibility to get to a green square just by going right or down
4. Look for a repeated pattern between value x and y (The max and min values needed to set the robot off)
5. Shell the URL of the level + your solution (saves using a program to interact with the applett)
There you have it. It's up to you which language you use and using what methods. Good luck.
Steps 3-4 are only possible to around level 150, from there on out you'll have to think of a more sosphisticated approach.laz0r wrote:This is probably the easiest game to bot. The approach I would take would be:
1. Extract the source into a textfile
2. Read the textfile containing the source for the text-based version of the grid
3. Map it using a 2d array and store every possibility to get to a green square just by going right or down
4. Look for a repeated pattern between value x and y (The max and min values needed to set the robot off)
5. Shell the URL of the level + your solution (saves using a program to interact with the applett)
There you have it. It's up to you which language you use and using what methods. Good luck.
As discovered... any ideas anyone?nto wrote:Steps 3-4 are only possible to around level 150, from there on out you'll have to think of a more sosphisticated approach.laz0r wrote:This is probably the easiest game to bot. The approach I would take would be:
1. Extract the source into a textfile
2. Read the textfile containing the source for the text-based version of the grid
3. Map it using a 2d array and store every possibility to get to a green square just by going right or down
4. Look for a repeated pattern between value x and y (The max and min values needed to set the robot off)
5. Shell the URL of the level + your solution (saves using a program to interact with the applett)
There you have it. It's up to you which language you use and using what methods. Good luck.
There is no spoon.