-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
64 lines (57 loc) · 1.57 KB
/
main.go
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
54
55
56
57
58
59
60
61
62
63
64
package main
import (
"fmt"
"github.com/marcellmartini/aoc-in-go/challenges/2023/day01"
"github.com/marcellmartini/aoc-in-go/challenges/2023/day02"
"github.com/marcellmartini/aoc-in-go/challenges/2023/day03"
"github.com/marcellmartini/aoc-in-go/challenges/2023/day04"
"github.com/marcellmartini/aoc-in-go/challenges/2023/day05"
"github.com/marcellmartini/aoc-in-go/puzzle"
)
func main() {
fmt.Printf("Day 01:\n")
fmt.Printf(
"\tPart 01: %d\n",
day01.Puzzle.Solutions[puzzle.Part1](day01.Puzzle.Inputs["input"]),
)
fmt.Printf(
"\tPart 02: %d\n",
day01.Puzzle.Solutions[puzzle.Part2](day01.Puzzle.Inputs["input"]),
)
fmt.Printf("Day 02:\n")
fmt.Printf(
"\tPart 01: %d\n",
day02.Puzzle.Solutions[puzzle.Part1](day02.Puzzle.Inputs["input"]),
)
fmt.Printf(
"\tPart 02: %d\n",
day02.Puzzle.Solutions[puzzle.Part2](day02.Puzzle.Inputs["input"]),
)
fmt.Printf("Day 03:\n")
fmt.Printf(
"\tPart 01: %d\n",
day03.Puzzle.Solutions[puzzle.Part1](day03.Puzzle.Inputs["input"]),
)
fmt.Printf(
"\tPart 02: %d\n",
day03.Puzzle.Solutions[puzzle.Part2](day03.Puzzle.Inputs["input"]),
)
fmt.Printf("Day 04:\n")
fmt.Printf(
"\tPart 01: %d\n",
day04.Puzzle.Solutions[puzzle.Part1](day04.Puzzle.Inputs["input"]),
)
fmt.Printf(
"\tPart 02: %d\n",
day04.Puzzle.Solutions[puzzle.Part2](day04.Puzzle.Inputs["input"]),
)
fmt.Printf("Day 05:\n")
fmt.Printf(
"\tPart 01: %d\n",
day05.Puzzle.Solutions[puzzle.Part1](day05.Puzzle.Inputs["input"]),
)
// fmt.Printf(
// "\tPart 02: %d\n",
// day05.Puzzle.Solutions[puzzle.Part2](day05.Puzzle.Inputs["input"]),
// )
}