From dac7c598e7c55673911c1aaf6d816d8c54ec4eb6 Mon Sep 17 00:00:00 2001 From: Alexander Avery Date: Mon, 2 Dec 2024 23:00:04 -0500 Subject: [PATCH] add puzzle runner main.go --- main.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 main.go diff --git a/main.go b/main.go new file mode 100644 index 0000000..4b01527 --- /dev/null +++ b/main.go @@ -0,0 +1,19 @@ +package main + +import ( + "adventoc/2024" + "bytes" + "fmt" + "io" + "os" +) + +func main() { + buf := new(bytes.Buffer) + tee := io.TeeReader(os.Stdin, buf) + + puzzle := adventoc2024.Day2{} + + fmt.Println("Part 1:", puzzle.Part1(tee)) + fmt.Println("Part 2:", puzzle.Part2(buf)) +}