{"id":24914388,"url":"https://github.com/spaenleh/aoc-swift-2024","last_synced_at":"2025-03-28T05:23:11.841Z","repository":{"id":265875566,"uuid":"896772466","full_name":"spaenleh/aoc-swift-2024","owner":"spaenleh","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-19T19:56:30.000Z","size":193,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T06:17:57.516Z","etag":null,"topics":["advent-of-code","advent-of-code-2024","adventofcode2024"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spaenleh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01T09:11:10.000Z","updated_at":"2024-12-19T19:56:34.000Z","dependencies_parsed_at":"2024-12-15T13:18:30.226Z","dependency_job_id":"23649fc7-f7e9-4b90-886f-eef1e4406a10","html_url":"https://github.com/spaenleh/aoc-swift-2024","commit_stats":null,"previous_names":["spaenleh/aoc-swift-2024"],"tags_count":0,"template":false,"template_full_name":"spaenleh/aoc-swift-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaenleh%2Faoc-swift-2024","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaenleh%2Faoc-swift-2024/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaenleh%2Faoc-swift-2024/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spaenleh%2Faoc-swift-2024/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spaenleh","download_url":"https://codeload.github.com/spaenleh/aoc-swift-2024/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245974458,"owners_count":20703042,"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-2024","adventofcode2024"],"created_at":"2025-02-02T06:17:55.913Z","updated_at":"2025-03-28T05:23:11.809Z","avatar_url":"https://github.com/spaenleh.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Advent of Code 2024 in Swift\n\nThis is my solutions for Advent of code 2024 in Swift.\n\n[![Language](https://img.shields.io/badge/language-Swift-red.svg)](https://swift.org)\n\nBelow is my current advancement in Advent of code:\n\n| Day | Part 1 | Part 2 |\n|:---|:---:|:---:|\n| Day 1 | :star: | :star: |\n| Day 2 | :star: | :star: |\n| Day 3 | :star: | :star: |\n| Day 4 | :star: | :star: |\n| Day 5 | :star: (22min) | :star: (21min) |\n| Day 6 | :star: |  |\n| Day 7 | :star: (45min) | :star: (33min) |\n| Day 8 | :star: (20min) | :star: (16min) |\n| Day 9 | :star: (1h51) | :star: (43min) |\n| Day 10 | :star: (28min) | :star: (3min) |\n| Day 11 | :star: (28min) | :star: (1min) |\n| Day 12 | :star: | :star: |\n| Day 13 | :star: | :star: (5min) |\n| Day 14 | :star: | :star: |\n| Day 15 | :star: (1h04) |  |\n| Day 16 |  |  |\n| Day 17 | :star: |  |\n| Day 18 |  |  |\n| Day 19 |  |  |\n| Day 20 |  |  |\n| Day 21 |  |  |\n| Day 22 |  |  |\n| Day 23 |  |  |\n| Day 24 |  |  |\n\n## Out of order fun moments\n\nA collection of moments I want to remember.\n\n### When I finally saw the Christmas tree of day 14\n\n![day 14 tree](./assets/day14-tree.png)\n\n\u003cdetails\u003e\n\u003csummary\u003eHow to use this repo\u003c/summary\u003e\n\nDaily programming puzzles at [Advent of Code](https://adventofcode.com/), by\n[Eric Wastl](http://was.tl/). This is a small example starter project for\nbuilding Advent of Code solutions.\n\n## Usage\n\nSwift comes with Xcode, or you can [install it](https://www.swift.org/install/)\non a supported macOS, Linux, or Windows platform.\n\nIf you're using Xcode, you can open this project by choosing File / Open and\nselect the parent directory.\n\nIf you prefer the command line, you can run the test suite with `swift test`,\nand run the output with `swift run`.\n\nIf you're using Visual Studio Code to edit, you might find these Swift\nextensions useful:\n\n- [Swift](https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang)\n  (provides core language edit / debug / test features)\n- [apple-swift-format](https://marketplace.visualstudio.com/items?itemName=vknabel.vscode-apple-swift-format)\n  (supports the [swift-format](https://github.com/apple/swift-format) package)\n\n## Challenges\n\nThe challenges assume three files (replace 00 with the day of the challenge).\n\n- `Sources/Data/Day00.txt`: the input data provided for the challenge\n- `Sources/Day00.swift`: the code to solve the challenge\n- `Tests/Day00.swift`: any unit tests that you want to include\n\nTo start a new day's challenge, make a copy of these files, updating 00 to the\nday number.\n\n```diff\n// Add each new day implementation to this array:\nlet allChallenges: [any AdventDay] = [\n-  Day00()\n+  Day00(),\n+  Day01(),\n]\n```\n\nThen implement part 1 and 2. The `AdventOfCode.swift` file controls which challenge\nis run with `swift run`. Add your new type to its `allChallenges` array. By default\nit runs the most recent challenge.\n\nThe `AdventOfCode.swift` file controls which day's challenge is run\nwith `swift run`. By default that runs the most recent challenge in the package.\n\nTo supply command line arguments use `swift run AdventOfCode`. For example,\n`swift run -c release AdventOfCode --benchmark 3` builds the binary with full\noptimizations, and benchmarks the challenge for day 3.\n\n## Linting and Formatting\n\nChallenge source code can be linted and formatted automatically using the\nincluded dependency on `swift-format`.\n\nLint source code with the following command:\n\n```shell\nswift package lint-source-code\n```\n\nFormat source code with the following command:\n\n```shell\n$ swift package format-source-code\nPlugin ‘Format Source Code’ wants permission to write to the package directory.\nStated reason: “This command formats the Swift source files”.\nAllow this plugin to write to the package directory? (yes/no)\n```\n\nTo avoid the interactive prompt when formatting source code, use the\n`--allow-writing-to-package-directory` flag.\n\n```shell\nswift package format-source-code --allow-writing-to-package-directory\n```\n\nswift-format will use the built-in default style to lint and format code. A\n`.swift-format` configuration file can be used to customize the style used, see\n[Configuration](https://github.com/apple/swift-format/blob/main/Documentation/Configuration.md)\nfor more details.\n\u003c/details\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaenleh%2Faoc-swift-2024","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspaenleh%2Faoc-swift-2024","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspaenleh%2Faoc-swift-2024/lists"}