2 Commits (main)

Author SHA1 Message Date
Peery d883950591 Day 5 - Supply Stacks (puzzle 2)
Just changed the instruction execution to run with a temporary crane stack.
First all crates are fetched from the source stack and put onto the crane stack.
Afterwards all crates on the crane stack are put onto the target stack.

Both operations use stacks and therefore result in a same-order movement in the end.
1 year ago
Peery 8783562d39 Day 5 - Supply Stacks (Puzzle 1)
Successfully finished the stack and instruction parsing and execution in Rust.
Took a bit and I've discovered that VecDeque are just more handy than plain Vecs but it works.
1 year ago