Skip to content

Commit dbb8a95

Browse files
committed
day16
1 parent 2cc8f06 commit dbb8a95

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

16/sol.exs

+3-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ defmodule Day16 do
1919
end
2020
end
2121

22-
def apply_vel_to_pos({x, y}, {dx, dy}) do
23-
%{pos: {x + dx, y + dy}, vel: {dx, dy}}
24-
end
22+
def apply_vel_to_pos({x, y}, {dx, dy}), do: %{pos: {x + dx, y + dy}, vel: {dx, dy}}
2523

2624
def next_steps(%{pos: pos, vel: vel}, grid) do
2725
case get_contraption(grid, pos) do
@@ -79,5 +77,5 @@ defmodule Day16 do
7977
end
8078
end
8179

82-
# IO.puts(Day16.partA("./input"))
83-
# IO.puts(Day16.partB("./input"))
80+
IO.puts(Day16.partA("./input"))
81+
IO.puts(Day16.partB("./input"))

0 commit comments

Comments
 (0)