Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artemis-beta/advent-of-code-2024
C++ library containing solutions to the Advent of Code 2024 challenge
https://github.com/artemis-beta/advent-of-code-2024
advent-of-code advent-of-code-2024 advent-of-code-2024-cpp
Last synced: about 1 month ago
JSON representation
C++ library containing solutions to the Advent of Code 2024 challenge
- Host: GitHub
- URL: https://github.com/artemis-beta/advent-of-code-2024
- Owner: artemis-beta
- Created: 2024-12-01T13:46:16.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-12-01T20:19:32.000Z (about 1 month ago)
- Last Synced: 2024-12-01T20:24:56.830Z (about 1 month ago)
- Topics: advent-of-code, advent-of-code-2024, advent-of-code-2024-cpp
- Language: C++
- Homepage: https://adventofcode.com/2024
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2024
[![Advent of Code 2024](https://github.com/artemis-beta/Advent-of-Code-2024/actions/workflows/build_test.yaml/badge.svg)](https://github.com/artemis-beta/Advent-of-Code-2024/actions/workflows/build_test.yaml)This repository contains solutions to the challenges set as part of the [Advent of Code 2024](https://adventofcode.com/2024).
The solutions have been created in the C++ programming language as a library.| | ||||||
|-|-|-|-|-|-|-|
||1|2|3|4|5|6|
||:x: | ||| | |
|7|8|9|10|11|12|13|
| | | | | | | | |
|14|15|16|17|18|19|20|
| | | | | | | |
|21|22|23|24|25| | |
| | | | | | | |The code is written as an AdventOfCode24 library which is built using CMake, the code of which is found in `src/` with headers present in `include/`. Solutions to the problems
then use this library and are found in `solutions/`. The project is carried out using test driven development using the examples for each problem to create tests built using GTest and found in `tests/`.## Building
Firstly clone this repository ensuring all sub-modules are cloned also:
```sh
git clone --recurse-submodules https://github.com/artemis-beta/Advent-of-Code-2023.git
```You will need CMake, note also that the project assumes C++23 is available:
```sh
cmake -Bbuild [-DAOC24_BUILD_TESTS=ON] [-DAOC24_BUILD_SOLUTIONS=ON]
cmake --build build
```## Execute
Run the tests using the GTest executable:
```sh
./build/tests/AdventOfCode24_Test
```Run the solutions from the relevant executable pointing to the applicable data file:
```sh
./build/solutions/day_1 ./solutions/data/day_1.txt
```