From: Jack Kinsey Date: Fri, 13 Dec 2019 00:14:57 +0000 (-0500) Subject: Test day12pt1 X-Git-Url: http://git.jkinsey.net/?a=commitdiff_plain;h=2557180a5d7e409937099b91a1e0524e4238978a;p=adventofcode2019.git Test day12pt1 --- diff --git a/resources/day12 b/resources/day12 new file mode 100644 index 0000000..268d7c4 --- /dev/null +++ b/resources/day12 @@ -0,0 +1,4 @@ + + + + diff --git a/src/adventofcode2019/day12.clj b/src/adventofcode2019/day12.clj index 28ad0b2..7326e42 100644 --- a/src/adventofcode2019/day12.clj +++ b/src/adventofcode2019/day12.clj @@ -42,7 +42,7 @@ (mapv velocity (reduce apply-gravity bodies all-pairs)))) (defn day12 [] - (let [input (map parse-coords (get-list-from-file (input-file))) + (let [input (mapv parse-coords (get-list-from-file (input-file))) simulate (iterate step-simulation input)] (part1 (reduce + (map total-energy (nth simulate 1000)))) #_(part2)))