master
Raw Download raw file
 1package main
 2
 3import (
 4	"advent2023/internal/aoc"
 5	"advent2023/internal/solutions"
 6	"fmt"
 7)
 8
 9func main() {
10	for _, d := range aoc.ReleasedDays(2023) {
11
12		parts := []aoc.Part{aoc.Part1, aoc.Part2}
13		types := []aoc.InputType{aoc.Example, aoc.Puzzle}
14
15		for _, p := range parts {
16			for _, t := range types {
17				id := aoc.ProblemId{
18					Day:  d,
19					Part: p,
20				}
21				i := aoc.Input{
22					ProblemId: id,
23					Type:      t,
24					//Expected: expected,
25				}
26				var ok bool
27				i.Solve, ok = solutions.Fn[id]
28				if !ok {
29					fmt.Printf("%s Not implemented\n", i)
30					continue
31				}
32				fmt.Printf("%s", i)
33				_ = i.Calculate()
34			}
35		}
36	}
37}