{"id":18597316,"url":"https://github.com/wiremoons/adventofcode2022","last_synced_at":"2026-05-03T13:41:39.583Z","repository":{"id":64156242,"uuid":"571305041","full_name":"wiremoons/AdventOfCode2022","owner":"wiremoons","description":"Solutions for Advent of Code puzzles: https://adventofcode.com/2022","archived":false,"fork":false,"pushed_at":"2023-10-19T15:26:48.000Z","size":97,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-17T23:44:45.373Z","etag":null,"topics":["aoc","aoc-2022-in-dart","aoc2022","dart","dartlang"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/wiremoons.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":"2022-11-27T19:58:04.000Z","updated_at":"2024-08-26T01:26:44.000Z","dependencies_parsed_at":"2024-12-26T21:24:06.619Z","dependency_job_id":"fcbaaca3-406b-49db-adae-da5f14e478f8","html_url":"https://github.com/wiremoons/AdventOfCode2022","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2FAdventOfCode2022","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2FAdventOfCode2022/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2FAdventOfCode2022/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiremoons%2FAdventOfCode2022/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiremoons","download_url":"https://codeload.github.com/wiremoons/AdventOfCode2022/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254538543,"owners_count":22087884,"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":["aoc","aoc-2022-in-dart","aoc2022","dart","dartlang"],"created_at":"2024-11-07T01:27:39.693Z","updated_at":"2026-05-03T13:41:34.529Z","avatar_url":"https://github.com/wiremoons.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AdventOfCode2022\n\nSolutions for Advent of Code puzzles: https://adventofcode.com/2022\n\n## About\n\nSolutions to Advent of Code (AoC) 2022 using the [Dart](https://dart.dev/)\nlanguage. Not used Dart much before so using the puzzles as an opportunity to\ntry the language out.\n\n## Solution Code\n\nThe source code for each day and part is linked below:\n\n**Day 01**\n\nFiguring out the Dart language to achieve what I wanted was the trickiest part,\nbut learnt a lot in the process.\n\n- [Day 01 Part 01](./dart/day01/day_01_part_01.dart)\n- [Day 01 Part 02](./dart/day01/day_01_part_02.dart)\n\n**Day 02**\n\nSolved it ok - but the code feels like a lot of compromises and very messy!\nProgress with Dart is ok, but a bit frustrating still.\n\n- [Day 02 Part 01](./dart/day02/day_02_part_01.dart)\n- [Day 02 Part 02](./dart/day02/day_02_part_02.dart)\n\n**Day 03**\n\nFelt more productive to today. While the puzzle was not completed any quicker,\nthe learning experience covering Dart lists, sets and character conversations\nwas all interesting, and good practical experience. Enjoyed the process, and the\noutcome felt worthwhile.\n\n- [Day 03 Part 01](./dart/day03/day_03_part_01.dart)\n- [Day 03 Part 02](./dart/day03/day_03_part_02.dart)\n\n**Day 04**\n\nEnjoyable puzzle. Wasted a lot of time trying to write my code using a more\n_functional style_ with `map` instead of more traditional `for loops`. Was\npartially successful - but reverted to a `for` loop for the final logic tests\nand count in the end. The 'Part 2' was a matter of swapping the `\u0026\u0026` for `||` on\nthe range checking - so easy once I understood the question. Also used\n[Helix](https://helix-editor.com) text editor to code in, for most of the\nsession, which added some more challenging overhead to the experience.\n\n- [Day 04 Part 01](./dart/day04/day_04_part_01.dart)\n- [Day 04 Part 02](./dart/day04/day_04_part_02.dart)\n\n**Day 05**\n\nToday's puzzle was frustrating, but not due to the solutions complexity or\ndifficulty, but mainly from the perspective of parsing in the puzzle data. I was\nunable to finished the puzzle on the day it came out, as I was back in work\ntoday, so had less time, and the time I did have was spent fighting with Dart\n(due to my lack of knowledge) trying to get the input ready. By the end of _Day\n05_ I am getting there, but time to call it a day, and come back to it when I\nhave more time. Hoping _Day 06_ will be more achievable on a 'work day'.\n\n- [Day 05 Part 01](./dart/day05/day_05_part_01.dart) -\u003e still _work in progress_\n- [Day 05 Part 02](./dart/day05/day_05_part_02.dart) -\u003e still _work in progress_\n\n**Day 06**\n\nManaged to finish _Day 06_ before starting work today, which I am please about\nafter having the opposite experience yesterday. Hopefully can complete the _work\nin progress_ puzzle _Day 05_ later... and catch back up.\n\n- [Day 06 Part 01](./dart/day06/day_06_part_01.dart)\n- [Day 06 Part 02](./dart/day06/day_06_part_02.dart)\n\n**Day 07**\n\nStarted _Day 07_ the morning the puzzle came out - but was unable to complete it\ndue to other commitments. The solution was only one line of code away from\nworking - but I didnt realise it at the time when I stopped! So on _Day 11_ I\nhave the time to try to catch up on now, and have complete both parts. Was an\ninteresting puzzle, and I leant about using Dart `map` features.\n\n- [Day 07 Part 01](./dart/day07/day_07_part_01.dart)\n- [Day 07 Part 02](./dart/day07/day_07_part_02.dart)\n\n## Running the Code\n\nThe setup was originally created using the `dart create` command - but the work\ninvolved to manage the puzzles code files and structure was over complicated.\n\nAfter completing _Day 02_ I reorganised the code using a much simpler approach\nof 'per day' directories. The code was then changed to run with a\n[shebang](https://stackoverflow.com/a/22583962/13106309) using the Dart JIT. The\nper day and part code files can also be built to use the AOT compiler if\npreferred, to make a self-contained executable, but for the puzzles this is not\ngoing to be needed. Nice to have the options though.\n\nCurrently each day and part code file should work using the following\ninstructions:\n\n1. Download and install the [Dart SDK](https://dart.dev/get-dart);\n2. Clone this GitHub repo to your computer:\n   `git clone https://github.com/wiremoons/AdventOfCode2022.git`;\n3. Change into the cloned repos directory and the puzzles daily directory you\n   want to run;\n4. Just run the `*.dart` script for each part (use: `chmod 755` first if\n   needed).\n\nEach code file can optionally be run with the additional parameter `-t` to make\nit execute using the AOC test input, instead of the main puzzle input.\n\n## License\n\nAll code is licenses with the [MIT License](./LICENSE). )\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fadventofcode2022","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiremoons%2Fadventofcode2022","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiremoons%2Fadventofcode2022/lists"}