advent-of-code-2023

command module
v0.0.0-...-7135d8f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

README

How to use

You need to have python installed (I used python 3.8), as well as golang (I used go 1.21).

You can either copy-paste the input for the day XX in ./dayXX/input.txt (for example for the day 4 it would be in ./day04/input.txt), or you can just copy paste your session token in ./session.txt and the script will get it for you. You can also copy paste the example values for the day XX in ./dayXX/example.txt to make sure it matches the given solution.

Then just run python run.py to get the solution for the last day available.

You can add the flag --dry-run to run only your functions on the data in example.txt (doing so won't even try to read or download input.txt).

You can add the flag -day=X to specify a day. For example in you are currently in the folder ./day08/ and you want to run the your functions of the day 3 but only with the example, run python ../run.py -day=3 --dry-run

You can add the flag --no-part-1 to skip the part 1 and only run the part 2 (usefull when the part 1 takes too long).

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL