Accessing your current level
The URL for the puzzle is http://www.hacker.org/oneofus/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. The 'board' parameter is the map, where character pairs determine the shapes and colors. (Each 'shape' of block is a different letter, starting with 'A'. Similarly, the 'colors' start with 'a'.) It's all one string, but you can break it up knowing boardX. (The first boardX * 2 characters make the first row, etc.)
Submit a Solution via an HTTP GET:
To submit a solution, use the following parameter:
path=<moves>
where the moves are a sequence of move pairs, two hexadecimal strings each, with a separator of a comma between x and y, and a separator of a '_' between moves.
For example, to submit a solution where you clicked one square over and two down, then three squares over and zero down, you would do an HTTP GET on the following URL:
Code: Select all
http://www.hacker.org/oneofus/index.php?name=<username>&password=<password>&path=1,2_3,0