Skip to content

Repository files navigation

Advent Of Code 2023 banner

About

This repository contains solutions for Advent of Code. Feel free to compare these against your own implementations.

Prerequisites

Setup

To set up a development environment, copy the contents of .env.example to .env in the root of the project. It should look as follows:

SESSION_SECRET="YOUR_AOC_SESSION_KEY"

Development

To get your input for a solution, run node aoc.js input <day> in the root of the project (only supported by AoC 2022 solutions). To run the solutions for a day using your input, run node aoc.js run <day>.

To run solutions of other languages, navigate to the directory of the solution itself, and run it in the terminal using the respective command-line invokation. For example, if you wanted to run the solution to the first part of a day's solution:

node P1.js # JavaScript
py P1.py # Python
ruby P1.rb # Ruby

NOTE: Carriage returns on Windows are by default in CRLF. You must convert your input files to LF before running solutions.

About

A set of solutions for Advent of Code, written in various languages of choice.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages