Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.42 KB

README.md

File metadata and controls

42 lines (28 loc) · 1.42 KB

Advent of Code

Advent of code offers every year nice problems to practice your coding. I take this as an excuse to learn or refresh my knowledge of a programming language:

Automation

Installation

  • Add an environment variable storing the cookie to advent of code export AOC_COOKIE="session=#SECRET#" (highly recommend direnv for this)
  • Create your base code for the year in resources/[ YYYY ] (knowing that the data are located)

Usage

  • Run the following command to generate the project in the language of the year, get the the input of the day, print the url of today's puzzle in the clipboard, and add the puzzle instruction as a README.md
make start
  • It also works for other days and years
make start DAY='[ DAY ]' YEAR='[ YEAR ]'

Worth noticing

  • If the folder already exist it will not be recreated
  • The test data are not parsed automatically

Notes

  • I lost the commit history of the early year
  • Some absolute paths can be found here and there sorry about that...