Skip to content

Repository files navigation

adventofcode

My Advent of Code solutions.

CLI

% deno task solve 2015/day/1Task solve ./bin/aoc.ts solve "2015/day/1"running solve from ./2015/day/1/part/1/solve.ts74 (1ms)running solve from ./2015/day/1/part/2/solve.ts1795 (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 }=awaitimport("https://adventofcode.deno.dev/solver.js");awaitsolve();

solve() supports some options:

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

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

    awaitsolve({dotLetterParsing: false});

Development

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

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

About

Advent of Code Solvers

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages