X-Git-Url: https://git.sommitrealweird.co.uk/advent-of-code-2019.git/blobdiff_plain/c4d07ccc686ba834151431d1fbd3cf35fe2f3b06..fdaf5cda4e3a5da6ff987115b94ef7196d897274:/day3/wires.sh?ds=inline diff --git a/day3/wires.sh b/day3/wires.sh index a28765a..b94ef0b 100644 --- a/day3/wires.sh +++ b/day3/wires.sh @@ -12,61 +12,19 @@ set -e #wire_2=(U62 R66 U55 R34 D71 R55 D58 R83) # these wires should get 135 -wire_1=(R98 U47 R26 D63 R33 U87 L62 D20 R33 U53 R51) -wire_2=(U98 R91 D20 R16 D67 R40 U7 R15 U6 R7) +#wire_1=(R98 U47 R26 D63 R33 U87 L62 D20 R33 U53 R51) +#wire_2=(U98 R91 D20 R16 D67 R40 U7 R15 U6 R7) # read in data from file instead -#exec 3=${min_max[2]}; a-- )); do - echo ${board[$a]} -done +trace_wire wire_2 board cross_wires 2 echo "Wires cross at:" min_distance=-1