Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tonygrif/trebuchet
Day 1 of Advent of Code (2023)
https://github.com/tonygrif/trebuchet
advent-of-code advent-of-code-2023 python
Last synced: 5 days ago
JSON representation
Day 1 of Advent of Code (2023)
- Host: GitHub
- URL: https://github.com/tonygrif/trebuchet
- Owner: TonyGrif
- License: mit
- Created: 2023-12-16T20:21:47.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-06T02:07:15.000Z (2 months ago)
- Last Synced: 2024-11-06T03:19:40.327Z (2 months ago)
- Topics: advent-of-code, advent-of-code-2023, python
- Language: Python
- Homepage: https://tonygrif.github.io/trebuchet/
- Size: 90.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Trebuchet
Python implementation of day 1 of [Advent of Code](https://adventofcode.com/2023/day/1) (2023)## Requirements
* [Python 3.9+](https://www.python.org/)## Installation
This project can be installed through `pip install aoc-trebuchet`.## Running Instructions
This program can be run with the following command: `trebuchet [text file]` in which text file contains
a collection of lines to parse through for integers. The first and last integer found will then be
concatenated. All the final integers from each line will then be added together and the result
written to standard out.If this program is run without arguments, the following error message will be outputted:
`Usage: trebuchet [OPTIONS] INPUT_FILE`## Sample Execution
When this program is run with `trebuchet resources/example.txt`, the following
output is generated:
`The result is 281`## Prompt Answer
The answer for part one is **55538**. \
The answer for part two is **54875**.