https://github.com/dbud/advent-of-code
Advent of Code solutions
https://github.com/dbud/advent-of-code
aoc-2024-in-deno
Last synced: 2 months ago
JSON representation
Advent of Code solutions
- Host: GitHub
- URL: https://github.com/dbud/advent-of-code
- Owner: dbud
- Created: 2024-12-09T01:48:45.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-12-26T18:36:26.000Z (11 months ago)
- Last Synced: 2024-12-26T19:27:54.518Z (11 months ago)
- Topics: aoc-2024-in-deno
- Language: TypeScript
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- really-awesome-advent-of-code - dbud/advent-of-code - commit/dbud/advent-of-code/main) (π 2024 AoC Solutions / Solutions)
README
# Advent of Code
My solutions for the [Advent of Code](http://adventofcode.com/)
## 2024
To celebrate [Deno](https://deno.com) hitting [2.0](https://deno.com/blog/v2.0), I decided to use it to solve this yearβs Advent of Code.
```
Progress:
.-----. .------------------.
.--'~ ~ ~| .-' * \ / '-. 1 **
.--'~ ,* ~ | | >o< \_\_\|_/__/ | 2 **
.---': ~ '(~), ~| | >@>O< o-_/.()__------| 3 **
|#..#'. ~ " ' ~ | |>O>o<@< \____ .'| 4 **
|_.~._#'.. ~ ~ *| | _| |_ ..\_\_ ..'* | 5 **
| ||| @ @'''...| |... .' '.'''../..| 6 **
|#~~~##@# @ @ | |/\ ''. | | -/ :| 7 **
|~~..--. _____ | |* /~\ '.| | - / .'| 8 **
'---' ||[][]_\-| |~/ * \ :| | *..' | 9 **
|------- | | /\ .'| |'''~~~~~| 10 **
|.......|| |/\ ..' | | . . | 11 **
| - - | |''':::::| | . .| 12 **
|'. - -| | :::::| | .' | 13 **
|...'..''| |. :::::| |..|\..''| 14 **
|. ''. | |.. :::::| |βββ¬β΄β΄β΄β¬β| 15 **
| '.~ '.| | :.:::::| |βββ€AoCβo| 16 **
|. *'.~ :| | '. ..| |β¬oβ€tenββ| 17 **
| '..' .'| | 'o | |β*β€yrsββ| 18 **
| ~ ..' | |:. '. | |ββββ¬β¬β¬β΄β| 19 **
|''')) | | o * :.'. .'βββ>>o<<| 20 **
.------' '------. | '' | 21
| .---_ '------'_ .~' | | . |\|\ / \ /~ >@<<*O>>o>>o| 23 **
|/ | \ *| |// / \ | | ----@ _|%%%=%%|_ | 24 **
|/ \ \ '------'/ / \ \| '-.! /^\ / \.~~./ \.-' 25 *
'----------------------' '------------------'
```
Prerequisites:
* `brew install deno`
* `brew install just`
Daily workflow:
1. `just create day-xx` creates a new deno project for the day and downloads the input (put your session cookie into `.env` as `AOC_SESSION="..."`)
1. `just test day-xx` runs tests in watch mode (put examples for part 1 and part 2 in `day-xx/test.ts`)
1. Solve the puzzle π in `day-xx/mod.ts`
1. `just solve day-xx part1` / `just solve day-xx part2` runs the solution using the input.