A repository for V language solutions to Advent of Code puzzles.
Initial layout:
A directory for the year, with subdirs for each day.
Inside each day subdir, example input file for that day, and individual solutions named
by the GitHub ID of the person who supplied it followed by .v to identify it as a V
language file.
If you have a solution that is more complex than a single .v file, make a subdir with
your GitHub ID under the appropriate year/day subdir, and place all files there.
.input-partX where X is part number, then follow other criteriafilesystem.input or cmd.inputNote 1: when you add .input files, please turn off the auto trimming
functionality of your editor/IDE. Some solutions require the .input
files to have the exact same format that AoC uses, and trimming end
lines may break them.
Note 2: there is a small script that can be used to verify that all
solutions continue to work with latest V versions. You can use it by
running v run verify.v in the top folder of this repository.
It will produce the necessary .out files for new solutions, and you
can commit them so that the CI will check that there are no
regressions.
The verify.v script, supports passing the input files as stdin to your programs.
Note: you can use lines := os.get_raw_lines() to read the input from stdin.
Feel free to join the vlang leaderboard: 1303110-4f92d16a.
V
100.0%
A repository for V language solutions to Advent of Code puzzles.
Initial layout:
A directory for the year, with subdirs for each day.
Inside each day subdir, example input file for that day, and individual solutions named
by the GitHub ID of the person who supplied it followed by .v to identify it as a V
language file.
If you have a solution that is more complex than a single .v file, make a subdir with
your GitHub ID under the appropriate year/day subdir, and place all files there.
.input-partX where X is part number, then follow other criteriafilesystem.input or cmd.inputNote 1: when you add .input files, please turn off the auto trimming
functionality of your editor/IDE. Some solutions require the .input
files to have the exact same format that AoC uses, and trimming end
lines may break them.
Note 2: there is a small script that can be used to verify that all
solutions continue to work with latest V versions. You can use it by
running v run verify.v in the top folder of this repository.
It will produce the necessary .out files for new solutions, and you
can commit them so that the CI will check that there are no
regressions.
The verify.v script, supports passing the input files as stdin to your programs.
Note: you can use lines := os.get_raw_lines() to read the input from stdin.
Feel free to join the vlang leaderboard: 1303110-4f92d16a.
V
100.0%