From 2557180a5d7e409937099b91a1e0524e4238978a Mon Sep 17 00:00:00 2001 From: Jack Kinsey Date: Thu, 12 Dec 2019 19:14:57 -0500 Subject: [PATCH] Test day12pt1 --- resources/day12 | 4 ++++ src/adventofcode2019/day12.clj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 resources/day12 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))) -- 2.38.5