fix: reload stats and puzzle

This commit is contained in:
2025-11-28 21:15:33 +01:00
parent 080f2b51c7
commit d2752a04b6
3 changed files with 13 additions and 3 deletions

View File

@@ -128,7 +128,9 @@ function Day:getInputData()
end
function Day:execPuzzle(puzzleI, data)
local puzzle = require(self:srcDir() .. "/puzzle" .. puzzleI)
local path = self:srcDir() .. "/puzzle" .. puzzleI
package.loaded[path] = nil
local puzzle = require(path)
local t0 = os.epoch("local")
local result = puzzle.solve(data)
local t1 = os.epoch("local")