Skip to content
/ aoc Public

Solution Archive for Advent of Code problems

Notifications You must be signed in to change notification settings

xenitane/aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aoc.zig

Requirements

Directory Structure

Root
|- .
|- ..
|- inputs
|- |- test
|  |  |- test.txt
|  |- year
|  |  |- 01.txt
|  |  |- ...
|  |  |- 25.txt
|  |- ...
|- solutions
|  |- year
|  |  |- 01.zig
|  |  |- ...
|  |  |- 25.zig
|  |- ...
|- build.zig
|- build.zig.zon
|- readme.md
|- template.zig

Points to Remember: The inputs must be provided by the user via the approprite file. The year in the directory structure are from 2015 and forward along with a test file in the inputs directory for testing purposes. There is a template file for the solutions which takes care of the file input in the root of the directory.

Instructions to Run

  • To run the solution of a certain year's certain day, use the following command and replace the year and day accordingly and make sure that the solution exists and the input file is also present.

    zig build aoc -Dyear=**<year>** -Dday=**<day>**
  • To run a test input against the same solution, make sure that you have the test input in the inputs/test/test.txt file and execute the following command.

    zig build aoc-test -Dyear=**<year>** -Dday=**<day>**

About

Solution Archive for Advent of Code problems

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages