This is a Rust solution to the Die Agony puzzle, described in https://www.janestreet.com/puzzles/die-agony-index/. It traverses the state space using BFS.
This assumes you have Rust installed.
$ cargo run --release
# Or, if you want to want to have a more detailed explanation of the solution.
$ cargo run --release -- --explain