Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bajger/adventofcode
Advent of code 2019,2021, 2022 - my own solutions using Pharo Smalltalk
https://github.com/bajger/adventofcode
pharo smalltalk
Last synced: about 1 month ago
JSON representation
Advent of code 2019,2021, 2022 - my own solutions using Pharo Smalltalk
- Host: GitHub
- URL: https://github.com/bajger/adventofcode
- Owner: Bajger
- Created: 2019-12-01T11:55:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-03T18:20:58.000Z (about 1 year ago)
- Last Synced: 2023-12-03T19:26:10.641Z (about 1 year ago)
- Topics: pharo, smalltalk
- Language: Smalltalk
- Homepage:
- Size: 320 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AdventOfCode
My own implemented solutions using [Pharo](https://pharo.org) Smalltalk for [Advent of Code](https://adventofcode.com) coding challenge.## How to load
You can load this project into [Pharo 12.0](https://pharo.org/download) (older versions might work as well) image using:
```
Metacello new
repository: 'github://Bajger/AdventOfCode/src';
baseline: 'AdventOfCode';
load
```## Currently implemented
AoC2019 - day 1 to 7 (part 1)
AoC2021 - day 1 to 3
AoC2022 - day 9
AoC2023 - Just started...## How to execute
Each year is represented by `AoC` class, like this: `AoC2019`.
To get result for given day and part of Advent of Code, just simply execute (inspect/print it) in Pharo Playground:
```
AoC2019 day: 1 part: 1
```
and you get result (based on input associated with my AoC account).
Not yet implemented/completed solutions will throw error, e.g.: `"AoC 2019 - solution not found for day: 20 part: 2." `## Completed Exercises
Just look at class determining given year, complete solutions can be found by evaluating e.g.: `AoC2019 aocSolutionClasses`
Each class represents one concrete solution for given day and part (order in array gives concecutive days).Solutions are tested by adequate test classes, for example: `PasswordCombinationsTest` represents unit tests for `PasswordCombinations` solution.