From b0bfab942c827907311056a15722ffa312b179cf Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 28 Nov 2025 07:19:14 -0600 Subject: [PATCH] chore: initial commit --- .gitignore | 19 +++++++++++++++++++ LICENSE.md | 21 +++++++++++++++++++++ README.md | 36 ++++++++++++++++++++++++++++++++++++ cmd/01/main.go | 5 +++++ cmd/01/main_test.go | 17 +++++++++++++++++ go.mod | 3 +++ 6 files changed, 101 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.md create mode 100644 README.md create mode 100644 cmd/01/main.go create mode 100644 cmd/01/main_test.go create mode 100644 go.mod diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4b1d5ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +**/*/EXAMPLE.txt +**/*/INPUT.txt +**/*/PROBLEM.md + +*.exe +*.exe~ +*.dll +*.so +*.dylib +*.test +*.out +coverage.* +*.coverprofile +profile.cov +go.work +go.work.sum +.env +tmp/ + diff --git a/LICENSE.md b/LICENSE.md new file mode 100644 index 0000000..a2b2126 --- /dev/null +++ b/LICENSE.md @@ -0,0 +1,21 @@ +# The MIT License (MIT) + +Copyright (c) 2025 Stevan Freeborn + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..322e53d --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ +# Advent of Code 2025 + +This repository contains my solutions for the [Advent of Code 2025](https://adventofcode.com/2025) challenges. + +## Languages + +I am using Go for this year's challenge again. + +## Structure + +Each day's solution is contained in a separate package. + +### Prerequisite + +- [Go](https://go.dev/doc/install) + +### Running the Solutions + +![TODO]: Update with instructions + +## Challenges + +| Day | Problem | Solution | Notes | +|-----|-------------------------------------------------|-------------------|-------| +| 01 | [Problem](https://adventofcode.com/2025/day/1) | [Solution](./01/) | | +| 02 | [Problem](https://adventofcode.com/2025/day/2) | [Solution](./02/) | | +| 03 | [Problem](https://adventofcode.com/2025/day/3) | [Solution](./03/) | | +| 04 | [Problem](https://adventofcode.com/2025/day/4) | [Solution](./04/) | | +| 05 | [Problem](https://adventofcode.com/2025/day/5) | [Solution](./05/) | | +| 06 | [Problem](https://adventofcode.com/2025/day/6) | [Solution](./06/) | | +| 07 | [Problem](https://adventofcode.com/2025/day/7) | [Solution](./07/) | | +| 08 | [Problem](https://adventofcode.com/2025/day/8) | [Solution](./08/) | | +| 09 | [Problem](https://adventofcode.com/2025/day/9) | [Solution](./09/) | | +| 10 | [Problem](https://adventofcode.com/2025/day/10) | [Solution](./10/) | | +| 11 | [Problem](https://adventofcode.com/2025/day/11) | [Solution](./11/) | | +| 12 | [Problem](https://adventofcode.com/2025/day/12) | [Solution](./12/) | | diff --git a/cmd/01/main.go b/cmd/01/main.go new file mode 100644 index 0000000..5547ccb --- /dev/null +++ b/cmd/01/main.go @@ -0,0 +1,5 @@ +package main + +func SolvePartOne(filePath string) int { + return 0 +} diff --git a/cmd/01/main_test.go b/cmd/01/main_test.go new file mode 100644 index 0000000..eabc50e --- /dev/null +++ b/cmd/01/main_test.go @@ -0,0 +1,17 @@ +package main_test + +import ( + "testing" + + solution "github.com/StevanFreeborn/advent-of-code-2025/cmd/01" +) + +func TestSolvePartOneWithExampleInput(t *testing.T) { + expected := -1 + + result := solution.SolvePartOne("EXAMPLE.txt") + + if result != expected { + t.Errorf("SolvePartOne() = %d; want %d", result, expected) + } +} diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e6940a9 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/StevanFreeborn/advent-of-code-2025 + +go 1.25.4