day 5 awk swap part one and two, oops
parent
bc646722df
commit
7fde412a04
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue