Skip to content

mfulton26/adventofcode

Repository files navigation

adventofcode

My Advent of Code solutions.

CLI

% deno task solve 2015/day/1
Task solve ./bin/aoc.ts solve "2015/day/1"
running solve from ./2015/day/1/part/1/solve.ts
74 (1ms)
running solve from ./2015/day/1/part/2/solve.ts
1795 (1ms)

2 solved (238ms)

Web

Run the following in the DevTools Console while on a puzzle page (e.g. Day 1 - Advent of Code 2015):

const { solve } = await import("https://adventofcode.deno.dev/solver.js");
await solve();

solve() supports some options:

  • part: 1 | 2: only run the solver for one part

    await solve({ part: 2 });
  • dotLetterParsing: false: disable detection and parsing of dot-letter answers

    await solve({ dotLetterParsing: false });

Development

The CLI usage is easiet but the web server can be run locally too:

deno task serve
await import("http://localhost:8000/solver.js").then(({ solve }) => solve());

About

Advent of Code Solvers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published