It consists on implementing a emulator according to the spec (arch-spec) to be able to read challenge.bin
See the official website for more details.
cargo run --release <path-to-binary>
will run your binary.
When using the challenge binary, you will not be able to save your adventure. To circumvent this, save in a file the commands you used. My solution is in adventure.txt.
Then run the emulator with cat adventure.txt - | cargo run --release <path-to-binary>
A brute force solution (tests all the permutations) to the coin challenge is in coin.rs.
Run it with
cargo run --bin coin
There is 8 codes to find.
- Read the spec
- Implement the basic intructions.
- Implement all the instuction so that the program self-test pass. You now have a working VM.
- Use your first item
- In the twisty passage with the can
- Solve the coin problem to get the teleporter