-
Notifications
You must be signed in to change notification settings - Fork 0
/
day10.lua
61 lines (41 loc) · 847 Bytes
/
day10.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
local read_input = require('lib.read_input')
local Day10 = {}
function Day10:new(o)
o = o or {}
o.parent = self
setmetatable(o, self)
self.__index = self
return o
end
local Part1 = Day10:new()
function Part1:new(input)
local o = {}
Day10.new(self, o)
return o
end
function Part1:solve()
return 0
end
local Part2 = Day10:new()
function Part2:new(input)
local o = {}
Day10.new(self, o)
return o
end
function Part2:solve()
return 0
end
local Input = {}
function Input:new(o)
o = o or {}
o.parent = self
setmetatable(o, self)
self.__index = self
local input = read_input("example input here")
return o
end
local input = Input:new()
local p1 = Part1:new(input)
print("Part 1: " .. p1:solve())
--local p2 = Part2:new(input)
--print("Part 2: " .. p2:solve())