From c04aea181a9539067f7e0cf36615ea9fd6e9f8aa Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Mon, 7 Dec 2020 00:44:55 -0600 Subject: [PATCH] Nasty day7 naive solution --- 2020/src/aoc2020.nim | 2 +- 2020/src/day_loader.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/2020/src/aoc2020.nim b/2020/src/aoc2020.nim index 282435e..73e4776 100644 --- a/2020/src/aoc2020.nim +++ b/2020/src/aoc2020.nim @@ -9,4 +9,4 @@ proc solve_for_day(n: int) {.used.} = when isMainModule: # solve_all() - solve_for_day(6) + solve_for_day(7) diff --git a/2020/src/day_loader.nim b/2020/src/day_loader.nim index 12cf9de..521967d 100644 --- a/2020/src/day_loader.nim +++ b/2020/src/day_loader.nim @@ -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"