Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

vrugtehagel/aoc-2024

Repository files navigation

Advent of Code 2024

Let's try and see how far I can get in Advent of Code using Deno!

           -***=.
         :*#####*:                                     *
        -****###*+.:.                  .
       -@@@@@@@@@..:!                .# %.           @@@.
      @@*.=%=.+%@@@                  #   #   .#@.   #:  #
     @%:. *%=   .-#@@                @@@@@  #-  -@  @
    @#:           :#@                @   @  @.  .@  #. .%
   @*:  ..       .=%@                @   #   #%=#    %@@
  @#-   .*=::.::=%@@
 @@=     .%@@@@@
 @#:     *@                                *
@@+     :@@
@%=     =@                                                   *
@%-     =@               *
@%-     -@
@%=     .%@
@%+      :@@              @@@@@
 @*.      .%@       @@@*=-:::::-+#@@@
 @%-       .-%@@@@%=:..           ...=%@@         *
  @*.                                  .-%@
  @@=.                                   .-#@@
   @@=.                                    .-#@@             @@@@
    @@=.                                     .:+%@@@      @@@++@@
     @@+.                                       ..:-=++++=-:.-%@
       @%:                                                 .*@@
        @@#-.                                           .-*%@
          @@%#=.                                   .:-*#%@@
            @@@%%#-.      .:---:        .#*****##%%@@@@
             @%=.=#+.     .-@@@#:       .#@@@@
              @#: -#-.     :%@*+*:      .+@
               @*:.**.     :#@@#%#:     .=@
                @@@@@=:...:=@@ @@@#-::::-*@
                    @@@@@@@@@     @@@@@@@@

Solutions are written in TypeScript or WASM. The latter can be written in .wat files and are compiled automatically, but require wat2wasm to be installed. However, .wasm files are committed to the repository, which Deno can run, so wat2wasm is not necessary to run the existing WASM solutions.

The tasks available are:

  • deno task day [day] to run the solution for a specific day, with an optional --example flag. Here, [day] should be replaced with the day number (e.g. deno task day 3). It then runs each solution, for both parts, both example and real inputs, and compares them against the specified output files, if any. If the --example flag is given, the main inputs are ignored (for easier debugging).
  • deno task test runs all solutions against the real inputs. If an output is not given, the test is skipped. This task runs on commits to main.

Releases

No releases published

Packages

No packages published