diff --git a/day05/sol.awk b/day05/sol.awk index 4712ece..ac007f5 100644 --- a/day05/sol.awk +++ b/day05/sol.awk @@ -46,8 +46,8 @@ function move(S, n, fr, to, flip) { } /^move .* from .* to .*/ { - move(stack, $2, $4, $6, 0) - move(stack2, $2, $4, $6, 1) + move(stack, $2, $4, $6, 1) + move(stack2, $2, $4, $6, 0) } END {