Skip to content

fritzr/advent2022

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent2022

Puzzle solutions for Advent of Code 2022 in Python (for now).

Sources

Days completed (click links for source code):

Running

The ./run script wraps the driver for the advent2022 package. By default, it runs the latest day, but it also accepts a list of days on the command-line. The default for each day is to read the baked-in input from my advent2022 account. The driver also accepts an argument to read input from a different file (which obviously only makes sense when running a single day).

Usage

usage: advent2022 [-h] [-P] [-v] [-t] [-I | -i INPUT | -a] ...

Run advent 2022 day-specific problems.

positional arguments:
  days                  Day(s) to run.

optional arguments:
  -h, --help            show this help message and exit
  -P, --pdb             Debug with PDB.
  -v, --verbose         More output.
  -t, --time            Profile runtime.

Input Options:
  -I, --stdin           Read from stdin.
  -i INPUT, --input INPUT
                        Input file (instead of day/input.txt)
  -a, --all             Run all days.

Dependencies

All scripts use standard library modules and expect Python >= 3.4.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published