aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: e2c5cc55dbfdf1862916de1b206aa320d0fe6b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Advent of code 2024

These are my solutions for Advent of Code in 2024.  This year I'm using Lua as the programming language.  To launch the program for a given day, run

```sh
./main <<ID>> [<<FILE>>]
```

where `<<ID>>` is the day number followed by `a` for the first part or `b` for the second part.  If the file is not specified, it defaults to the number of the day with two digits and extension `.in`, i.e. `01.in`.  One can use the name of a file that doesn't exist, e.g. `-`, to read from standard input.

Example:

```sh
./main 01b input
```