Solutions for Advent of Code written in Odin, for typescript solutions for years 2015-2025 check the typescript branch.
Commands are ran using go-task
Tip
Variables YEAR and DAY can be overwriten for all commands
# will create odin file and download input file to inputs/
#
# create current day
task new
task new YEAR=[year] DAY=[day]# Will run the code for the specified part of day
# --test can be used to run against the test data from inputs/
#
# Execute part of day
task run -- [part]
task run YEAR=[year] DAY=[day]-- [part]# Benchmark part of day
# requires hyperfine to be
task bench -- [part]
task bench YEAR=[year] DAY=[day] -- [part]# Fetch input of day
# As the inputs are not shared with this repo (see below)
task get
task get YEAR=[year] DAY=[day]My personal inputs are not shared in this repository.
Althouhg it is not strictly forbidden it is asked by the creator to not share/collect personal inputs.
To refetch the input of an already created day task get YEAR=[year] DAY=[day] can be run.