@nguyenhuu/adventofcode
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

Advent of Code

Get started

Save your session cookie into .env file in the root folder as below:

SESSION=f8fe3ed61...

The session cookie can be found in Developer Tools > Application tab > Cookies > https://adventofcode.com, of course, we need to log in to have it.

Start solving problems


npx @nguyenhuu/adventofcode@latest -d <day> -p <part> -y <year> -l <language>

Example:

npx @nguyenhuu/adventofcode@latest -d 1 -p 1 -y 2023 -l python

The folder structure would be:

current
  ├── 2023
  │  └── day1
  │     ├── sample.txt
  │     └── part1.py
  └── .env
  

Hot keys

  • s : Using sample.txt as input
  • i : Using input.txt as input
  • u : Submit the most recent result
  • 0 -> 9 : Select part
  • c : Clear terminal
  • q : Quit program
  • x : Terminate solution
  • Enter : Re-run solution
  • h : Show helps

demo

Supported languages

Need an installed runtime!

  • Javascript .mjs
  • Python .py
  • Golang .go
  • Java .java

Readme

Keywords

Package Sidebar

Install

npm i @nguyenhuu/adventofcode

Weekly Downloads

5

Version

0.0.14

License

MIT

Unpacked Size

346 kB

Total Files

53

Last publish

Collaborators

  • nguyenhuu