Welcome to my repository where I tackle the exciting challenges from Advent of Code using TypeScript, particularly with the Bun runtime. Here, you'll find my journey through these puzzles, focusing on clean and efficient solutions. π
Advent of Code is an annual set of Christmas-themed programming challenges that can be solved in any programming language you like. I've chosen TypeScript for its familiarity and robust features.
After an initial attempt with Rust in 2022, I've shifted my focus solely to problem-solving rather than language learning. TypeScript, being my comfort zone, allows me to dive deeper into the intricacies of each problem.
- Each year's challenges are neatly organized in their respective directories under
years
. - Solutions for each day are placed in corresponding folders, e.g.,
./years/2023/01/
.
Ensure you have Bun installed on your machine as this project uses Bun's runtime.
Navigate to the repository's root and use the custom CLI to manage and run solutions:
- Run Solution:
bun cli run
orbun cli r
- Executes the solution for the current day. - Create New Solution:
bun cli create
orbun cli c
- Sets up a new solution for the current day. - Help:
bun cli --help
orbun cli -h
- Displays the help message.
To run tests, simply use the native bun test
command.
Feel free to fork this repository and use it as a starting point for your own Advent of Code challenges. If you have suggestions to improve this repo, please open an issue or submit a pull request.
This project is open source and available under the MIT License.
*
_/ \_
\ /
/_' '_\
/ -\
/.*@@ \
/ ' + -\
/ -o *'+ \
/ .* -@+ \
*-------------*
[_______]
\_____/
- ASCII tree by xmas-tree
Happy Coding! π