aboutsummaryrefslogtreecommitdiff
path: root/src/2015/day18/aoc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/2015/day18/aoc.cpp')
-rw-r--r--src/2015/day18/aoc.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/2015/day18/aoc.cpp b/src/2015/day18/aoc.cpp
index 9e8d822..0980b50 100644
--- a/src/2015/day18/aoc.cpp
+++ b/src/2015/day18/aoc.cpp
@@ -1,4 +1,11 @@
#include "aoc.h"
namespace aoc2015 {
+int day18(line_view file, int d) {
+ yard y;
+ y.parse(file);
+ y.turns(d);
+ return y.count();
}
+
+} // namespace aoc2015