projects
/
adventofcode2019.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Test day12pt1
[adventofcode2019.git]
/
src
/
adventofcode2019
/
day12.clj
diff --git
a/src/adventofcode2019/day12.clj
b/src/adventofcode2019/day12.clj
index 28ad0b2783d56ae33132fd918c0077ff65c86f13..7326e425a72c8d73c9759ee06ef7c8ef480e0d8e 100644
(file)
--- a/
src/adventofcode2019/day12.clj
+++ b/
src/adventofcode2019/day12.clj
@@
-42,7
+42,7
@@
(mapv velocity (reduce apply-gravity bodies all-pairs))))
(defn day12 []
(mapv velocity (reduce apply-gravity bodies all-pairs))))
(defn day12 []
- (let [input (map parse-coords (get-list-from-file (input-file)))
+ (let [input (map
v
parse-coords (get-list-from-file (input-file)))
simulate (iterate step-simulation input)]
(part1 (reduce + (map total-energy (nth simulate 1000))))
#_(part2)))
simulate (iterate step-simulation input)]
(part1 (reduce + (map total-energy (nth simulate 1000))))
#_(part2)))