Automation
Posted: Thu May 10, 2007 9:59 pm
Like all our puzzles, this is designed to be solved by a computer past a certain point.
Accessing your current level
The URL for the puzzle is http://www.hacker.org/coil/index.php
The URL will accept parameters in the query part of the URL that correspond to your registered account:
name=<username>
password=<password>
Just making a normal HTTP request to the above URL with your name and password will retrieve the current puzzle. To parse this information, look for the line that says FlashVars="...". inside the quotes are params separated by ampersands. he board parameter is the map, where an X is a blocked spot and a dot is an empty one. It's all one string, but you can break it up knowing boardX. (The first boardX characters make the first row, etc.)
Submit a Solution via an HTTP GET:
To submit a solution, use the following parameter:
path=<moves>
x=<starting x coordinate>
y=<starting y coordinate>
where the moves are a list of 'D', 'R', 'U', or 'L' for down, right, up, or left.
For example, to submit a solution where your solution went {down, right, up} from one square over and two down, you would do an HTTP GET on the following URL:
Accessing your current level
The URL for the puzzle is http://www.hacker.org/coil/index.php
The URL will accept parameters in the query part of the URL that correspond to your registered account:
name=<username>
password=<password>
Just making a normal HTTP request to the above URL with your name and password will retrieve the current puzzle. To parse this information, look for the line that says FlashVars="...". inside the quotes are params separated by ampersands. he board parameter is the map, where an X is a blocked spot and a dot is an empty one. It's all one string, but you can break it up knowing boardX. (The first boardX characters make the first row, etc.)
Submit a Solution via an HTTP GET:
To submit a solution, use the following parameter:
path=<moves>
x=<starting x coordinate>
y=<starting y coordinate>
where the moves are a list of 'D', 'R', 'U', or 'L' for down, right, up, or left.
For example, to submit a solution where your solution went {down, right, up} from one square over and two down, you would do an HTTP GET on the following URL:
Code: Select all
http://www.hacker.org/coil/index.php?name=<username>&password=<password>&path=DRU&x=1&y=2