Skip to content

dander/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code in Red

This is a small collection of solutions to Advent of Code problems, and a problem input downloader.

I mostly use Advent of Code to experiment with different ways of solving the problems, and tend to not get very far. I might have some weird solutions.

To use the input downloader, copy read-input.red to your workspace, and save your browser session cookie to session-cookie.txt. image

Then put something like this at the top of your script:

#include %read-input.red

year: 2021
day: 1
problem-input: load read-input year day
; or maybe
problem-input-lines: read-lines get-input year day

It plays nice with the site, and only downloads the input a single time. After that, it will load from the cached version in the local directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published