-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday23.lua
53 lines (35 loc) · 765 Bytes
/
day23.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
local read_input = require('lib.read_input')
local Day23 = {}
function Day23:new(o)
o = o or {}
o.parent = self
setmetatable(o, self)
self.__index = self
return o
end
local Part1 = Day23:new()
function Part1:new(input)
local o = {}
Day23.new(self, o)
return o
end
local Part2 = Day23:new()
function Part2:new(input)
local o = {}
Day23.new(self, o)
return o
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())