{"id":22595055,"url":"https://github.com/sebsebmc/adventofcode2024","last_synced_at":"2025-03-28T19:13:57.672Z","repository":{"id":266177193,"uuid":"897009905","full_name":"sebsebmc/AdventOfCode2024","owner":"sebsebmc","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-22T20:49:42.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T19:52:23.807Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sebsebmc.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-01T20:51:28.000Z","updated_at":"2025-01-22T20:49:46.000Z","dependencies_parsed_at":"2024-12-03T01:18:44.542Z","dependency_job_id":"22c3c0f1-2ec7-40ee-818e-fbea32d705a0","html_url":"https://github.com/sebsebmc/AdventOfCode2024","commit_stats":null,"previous_names":["sebsebmc/adventofcode2024"],"tags_count":0,"template":false,"template_full_name":"eduherminio/AdventOfCode.Template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsebmc%2FAdventOfCode2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsebmc%2FAdventOfCode2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsebmc%2FAdventOfCode2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sebsebmc%2FAdventOfCode2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sebsebmc","download_url":"https://codeload.github.com/sebsebmc/AdventOfCode2024/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246085638,"owners_count":20721212,"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":[],"created_at":"2024-12-08T10:08:48.453Z","updated_at":"2025-03-28T19:13:57.654Z","avatar_url":"https://github.com/sebsebmc.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdventOfCode\r\n\r\n![CI](https://github.com/sebsebmc/AdventOfCode2024/workflows/CI/badge.svg)\r\n\r\nAdvent of Code template based on [AoCHelper](https://github.com/eduherminio/AoCHelper) project.\r\n\r\nIt allows you to focus on solving AoC puzzles while providing you with some performance stats.\r\n\r\nProblem example:\r\n\r\n```csharp\r\nusing AoCHelper;\r\nusing System.Threading.Tasks;\r\n\r\nnamespace AdventOfCode;\r\n\r\npublic class Day_01 : BaseDay\r\n{\r\n    public override ValueTask\u003cstring\u003e Solve_1() =\u003e new(\"Solution 1\");\r\n\r\n    public override ValueTask\u003cstring\u003e Solve_2() =\u003e new(\"Solution 2\");\r\n}\r\n\r\n```\r\n\r\nOutput example:\r\n\r\n![aochelper](https://user-images.githubusercontent.com/11148519/142051856-16d9d5bf-885c-44cd-94ae-6f678bcbc04f.gif)\r\n\r\n## Basic usage\r\n\r\n- Create one class per advent day, following `DayXX` or `Day_XX` naming convention and implementing `AoCHelper.BaseDay`.\r\n- Place input files under `Inputs/` dir, following `XX.txt` convention.\r\n- Read the input content from `InputFilePath` and solve the puzzle by implementing `Solve_1()` and `Solve_2()`!\r\n\r\n**By default, only your last problem will be solved when running the project**. You can change that by behavior by modifying `Program.cs`.\r\n\r\nInvoking **different methods**:\r\n\r\n- `Solver.SolveAll();` → solves all the days.\r\n\r\n- `Solver.SolveLast();` → solves only the last day.\r\n\r\n- `Solver.Solve\u003cDay_XX\u003e();` → solves only day `XX`.\r\n\r\n- `Solver.Solve(new uint[] { XX, YY });` → solves only days `XX` and `YY`.\r\n\r\n- `Solver.Solve(new [] { typeof(Day_XX), typeof(Day_YY) });` → same as above.\r\n\r\nProviding a **custom `Action\u003cSolverConfiguration\u003e`** to any of those methods ([availabe options described here](https://github.com/eduherminio/AoCHelper#customization)):\r\n\r\n- `Solver.SolveLast(opt =\u003e opt.ClearConsole = false);` → solves only the last day providing a custom configuration.\r\n\r\n-\r\n    ```csharp\r\n    Solver.SolveAll(opt =\u003e\r\n    {\r\n        opt.ShowConstructorElapsedTime = true;\r\n        opt.ShowTotalElapsedTimePerDay = true;\r\n        opt.ElapsedTimeFormatSpecifier = \"F3\";\r\n    });\r\n    ```\r\n    solves all the days providing a custom configuration.\r\n\r\n## Advanced usage\r\n\r\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.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebsebmc%2Fadventofcode2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsebsebmc%2Fadventofcode2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsebsebmc%2Fadventofcode2024/lists"}