Nasty day7 naive solution
This commit is contained in:
parent
b861e02a51
commit
c04aea181a
2 changed files with 2 additions and 2 deletions
|
@ -9,4 +9,4 @@ proc solve_for_day(n: int) {.used.} =
|
|||
|
||||
when isMainModule:
|
||||
# solve_all()
|
||||
solve_for_day(6)
|
||||
solve_for_day(7)
|
||||
|
|
|
@ -3,7 +3,7 @@ import input_requestor, os, macros, strformat, tables
|
|||
macro loadDays(): untyped =
|
||||
var solver_str = "var solvers = {\n"
|
||||
result = newStmtList()
|
||||
for day in 1..6:
|
||||
for day in 1..25:
|
||||
let module = fmt"day{day}"
|
||||
if fileExists joinPath("src/", &"{module}.nim"):
|
||||
result.add parseStmt fmt"from {module} import nil"
|
||||
|
|
Loading…
Reference in a new issue