Skip to content

Commit

Permalink
Day 05: Solve part 1 and 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nihas101 committed Dec 5, 2023
1 parent 2912353 commit a6083f0
Show file tree
Hide file tree
Showing 56 changed files with 220 additions and 1,518 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clojure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ jobs:
- uses: actions/checkout@v3
- name: Install dependencies
run: lein deps
- name: Run tests
run: lein test
- name: Run tests (examples only)
run: lein test :only-examples
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/resources
/target
/classes
/checkouts
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A repository containing my solutions to the [Advent of code 2023](https://advent
The solutions are written in [Clojure](https://clojure.org). [Leningen](https://leiningen.org/) can be used to execute the code within this project to e.g. run tests on the solutions.

## Solutions
The solutions are located in `src/advent_of_code_2023/`. The solutions for day XY are found in file `dayXY.clj`. The corresponding tests are found in files named `test/advent_of_code_2023/dayXY_test.clj`. Input files are stored in `resources/dayXY.txt`
The solutions are located in `src/advent_of_code_2023/`. The solutions for day XY are found in file `dayXY.clj`. The corresponding tests are found in files named `test/advent_of_code_2023/dayXY_test.clj`.


# Using This Repository as a Base
Expand All @@ -26,6 +26,9 @@ If you plan to use this as a base project for your own solutions also consider t
- [lein-auto](https://github.com/weavejester/lein-auto) to automatically run tasks on file changes
- [eftest](https://github.com/weavejester/eftest) for prettier test output

# Notice
Please remember to not include the puzzle input in your repository as noted in the [about page](https://adventofcode.com/about) of the advent of code.

## License

Copyright © 2023 nihas101
Expand Down
4 changes: 3 additions & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.11.1"]]
:repl-options {:init-ns advent-of-code-2023.core})
:repl-options {:init-ns advent-of-code-2023.core}
:test-selectors {:only-examples (fn [{:keys [name]}]
(clojure.string/includes? (str name) "example"))})
Loading

0 comments on commit a6083f0

Please sign in to comment.