Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/olehkorchytskyi/swift-aoc-2023

Solving Advent of Code 2023 challenges in Swift.
https://github.com/olehkorchytskyi/swift-aoc-2023

advent-of-code advent-of-code-2023 advent-of-code-2023-swift swift

Last synced: 25 days ago
JSON representation

Solving Advent of Code 2023 challenges in Swift.

Awesome Lists containing this project

README

        

# Advent of Code 2023

This project showcases my solutions for each day's challenge in Swift.

## Project Structure

- `Sources/Data/Day##.txt`: the input data provided for the challenge;
- `Sources/Day##.swift`: the code to solve the challenge;
- `Tests/Day##.swift`: unit tests for par1 and part2 of the challenge.

## How to Run

To run the solutions, you can use the following command:

```bash
swift run AdventOfCode [--benchmark]
```

For example, to run the solution for Day 4 with benchmarking:

```bash
swift run AdventOfCode 4 --benchmark
```

## Acknowledgments

This project is based on the template from [swift-aoc-starter-example](https://github.com/apple/swift-aoc-starter-example). Special thanks to the contributors for providing a solid foundation.