{"id":13778645,"url":"https://github.com/eduherminio/AdventOfCode.Template","last_synced_at":"2025-05-11T12:31:09.602Z","repository":{"id":45890659,"uuid":"316803811","full_name":"eduherminio/AdventOfCode.Template","owner":"eduherminio","description":"Advent of Code C# (.NET 8) template. Based on AoCHelper (https://github.com/eduherminio/AoCHelper)","archived":false,"fork":false,"pushed_at":"2023-12-08T15:59:04.000Z","size":22,"stargazers_count":37,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-08-03T18:13:09.813Z","etag":null,"topics":["advent-of-code","advent-of-code-2020","advent-of-code-2021","advent-of-code-2022","advent-of-code-2023","adventocode","adventofcode2020","adventofcode2021","adventofcode2022","adventofcode2023","aoc","aoc2020","aoc2021","aoc2022","aoc2023","competitive-programming"],"latest_commit_sha":null,"homepage":"https://adventofcode.com","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eduherminio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-11-28T19:08:20.000Z","updated_at":"2024-04-08T16:53:03.000Z","dependencies_parsed_at":"2023-11-25T23:26:31.274Z","dependency_job_id":"5c832161-6bd2-4da6-aada-4fd444943c81","html_url":"https://github.com/eduherminio/AdventOfCode.Template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduherminio%2FAdventOfCode.Template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduherminio%2FAdventOfCode.Template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduherminio%2FAdventOfCode.Template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eduherminio%2FAdventOfCode.Template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eduherminio","download_url":"https://codeload.github.com/eduherminio/AdventOfCode.Template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225048969,"owners_count":17412901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advent-of-code","advent-of-code-2020","advent-of-code-2021","advent-of-code-2022","advent-of-code-2023","adventocode","adventofcode2020","adventofcode2021","adventofcode2022","adventofcode2023","aoc","aoc2020","aoc2021","aoc2022","aoc2023","competitive-programming"],"created_at":"2024-08-03T18:00:55.657Z","updated_at":"2024-11-17T14:30:41.646Z","avatar_url":"https://github.com/eduherminio.png","language":"C#","funding_links":[],"categories":["Project Templates"],"sub_categories":[],"readme":"# AdventOfCode.Template\n\n![CI](https://github.com/eduherminio/AdventOfCode.Template/workflows/CI/badge.svg)\n\nAdvent of Code template based on [AoCHelper](https://github.com/eduherminio/AoCHelper) project.\n\nIt allows you to focus on solving AoC puzzles while providing you with some performance stats.\n\nProblem example:\n\n```csharp\nusing AoCHelper;\nusing System.Threading.Tasks;\n\nnamespace AdventOfCode;\n\npublic class Day_01 : BaseDay\n{\n    public override ValueTask\u003cstring\u003e Solve_1() =\u003e new(\"Solution 1\");\n\n    public override ValueTask\u003cstring\u003e Solve_2() =\u003e new(\"Solution 2\");\n}\n\n```\n\nOutput example:\n\n![aochelper](https://user-images.githubusercontent.com/11148519/142051856-16d9d5bf-885c-44cd-94ae-6f678bcbc04f.gif)\n\n## Basic usage\n\n- Create one class per advent day, following `DayXX` or `Day_XX` naming convention and implementing `AoCHelper.BaseDay`.\n- Place input files under `Inputs/` dir, following `XX.txt` convention.\n- Read the input content from `InputFilePath` and solve the puzzle by implementing `Solve_1()` and `Solve_2()`!\n\n**By default, only your last problem will be solved when running the project**. You can change that by behavior by modifying `Program.cs`.\n\nInvoking **different methods**:\n\n- `Solver.SolveAll();` → solves all the days.\n\n- `Solver.SolveLast();` → solves only the last day.\n\n- `Solver.Solve\u003cDay_XX\u003e();` → solves only day `XX`.\n\n- `Solver.Solve(new uint[] { XX, YY });` → solves only days `XX` and `YY`.\n\n- `Solver.Solve(new [] { typeof(Day_XX), typeof(Day_YY) });` → same as above.\n\nProviding a **custom `Action\u003cSolverConfiguration\u003e`** to any of those methods ([availabe options described here](https://github.com/eduherminio/AoCHelper#customization)):\n\n- `Solver.SolveLast(opt =\u003e opt.ClearConsole = false);` → solves only the last day providing a custom configuration.\n\n-\n    ```csharp\n    Solver.SolveAll(opt =\u003e\n    {\n        opt.ShowConstructorElapsedTime = true;\n        opt.ShowTotalElapsedTimePerDay = true;\n        opt.ElapsedTimeFormatSpecifier = \"F3\";\n    });\n    ```\n    solves all the days providing a custom configuration.\n\n## Advanced usage\n\nCheck [AoCHelper README file](https://github.com/eduherminio/AoCHelper#advanced-usage) for detailed information about how to override the default file naming and location conventions of your problem classes and input files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduherminio%2FAdventOfCode.Template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feduherminio%2FAdventOfCode.Template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feduherminio%2FAdventOfCode.Template/lists"}