day 5 awk swap part one and two, oops

main
magical 2022-12-07 12:17:58 -08:00
parent bc646722df
commit 7fde412a04
1 changed files with 2 additions and 2 deletions

View File

@ -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 {