Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/day-00-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
- main
paths:
- 'days/day-00-example/**'
- 'languages/**'
- 'lang/**'
- 'Makefile'
pull_request:
branches:
- main
paths:
- 'days/day-00-example/**'
- 'languages/**'
- 'lang/**'
- 'Makefile'
workflow_dispatch:

Expand Down
43 changes: 31 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,53 @@

1. Pop some popcorn :popcorn: (or whatever you enjoy :lollipop: :champagne: :milk_glass: :wine_glass: :tropical_drink: :chocolate_bar: :beer:)
2. Fork
3. Write a solution, in the language of your choice. Example: `vim day-03/solutions/super-optimized.py`
4. Test your solution.
3. Write a solution, in the language of your choice. Example: `vim days/day-03/solutions/super-optimized.py`
4. Test your solution

```sh
cd days/day03
../../languages/python.sh input.txt output.txt solutions/super-optimized.py
$ ./lang/python.sh "days/day-03/solutions/super-optimized.py" "days/day-03/io/my.input days/day-03/io/my.output"

# ..or use the short-hand
$ ./lang/python.sh "days/day-03/**/*.py" "days/day-03/io/*"

cat INPUT | python3 day03.klyve.py 13ms βœ…
cat INPUT | python3 day03.preng.py 11ms βœ…
cat INPUT | python3 one-liner.py 12ms βœ…
```

5. Add the test to `day03/test.sh`, to let the CI know how to test your solution.
6. Make a Pull Request to the `main` branch.
7. One of the maintainers will merge when the tests pass!
8. Remember to have fun :tada:
5. Make sure `days/day03/test.sh` tests your solution.

6. To test the whole day do:
```sh
./days/day03/test.sh
# or
make test.day03
# or
make docker.day03
```

7. When you are happy with local testing, make a Pull Request to the `main` branch.
8. One of the maintainers will merge PR's, at the of each day.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One of the maintainers will merge PR's, at the ................. of each day.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

πŸ‘€ Well spotted. Since I already merged, I will commit a fix for this directly πŸ‘

9. Remember to have fun :tada:


## How do I add a language?

1. Add the language you want to the `Dockerfile`
2. Add a language test-script in `languages/<new-language>.sh`
2. Add a language test-script in `lang/<new-language>.sh`
3. Add an example solution in `days/day-00-example/solutions/example.<new-language>`
4. Make a PR to `main`-branch.
5. One of the maintainers will do `make docker.build` and `make docker.push` and merge your PR on his machine ASAP :racing_car:
5. One of the maintainers will push a new docker-image to dockerhub.com, based on your PR.
6. ...then make sure Github workflows uses the new docker-image.
7. ...then merge the PR.

## How are solutions tested?

Every solution gets the `input.txt`-file delivered to `stdin` using `cat`, and whatever is written to `stdout` is compared for equality against `output.txt` using `diff`. This is identical for every language.
Every solution gets the `io/*.input`-files for a given day delivered to `stdin`, using `cat`. Whatever is written to `stdout` by the solution, is then compared for equality against `io/*.output`-files, using `diff`. This is identical for every language.

```sh
#!/usr/bin/env bash
cat input.txt | <solution-in-any-language> | diff - output.txt
cat day-03/io/my.input | <solution-in-any-language> | diff - day-03/io/my.output
```

See [day-00-example/solutions/](https://github.com/Arxcis/adventofcode2020/tree/main/days/day-00-example/solutions), for examples on how to read from `stdin` and how to write to `stdout` in different languages.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export DOCKER_TAG="jonasjso/adventofcode2020:2020-12-07-with-deno"
;\

test.all:
for day in $$(ls days); do ./days/$$day/test.sh; done
./test.sh

test.versions:
./scripts/print-versions.sh
Expand Down Expand Up @@ -131,6 +131,8 @@ docker.day07:
make docker.test DAY=day-07
docker.day08:
make docker.test DAY=day-08
docker.day09:
make docker.test DAY=day-09
docker.day10:
make docker.test DAY=day-10
docker.day11:
Expand Down
43 changes: 21 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ Welcome to this community project, where we collaboratively solve the 2020 editi

## Solutions per language per day

| Language | Total | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 |11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|
|-----------|--------|------|-----|-----|------|-----|-----|-----|-----|----|----|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|
| python3 | **18** | 2 | 1 | 3 | 4 | 4 | 3 | 1 | | | ||||||||||||||||
| golang | **13** | 2 | 2 | 2 | 1 | 2 | 2 | 1 | 1 | | ||||||||||||||||
| sml | **8** | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | ||||||||||||||||
| deno.ts | **8** | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | ||||||||||||||||
| c | **6** | 1 | 1 | 1 | 1 | 1 | 1 | | | | ||||||||||||||||
| zig | **5** | 1 | 1 | 1 | 1 | 1 | | | | | ||||||||||||||||
| node.js | **4** | 1 | | | 1 | | 1 | 1 | | | ||||||||||||||||
| c++ | **2** | 1 | 1 | | | | | | | | ||||||||||||||||
| ruby | **2** | 1 | | | 1 | | | | | | ||||||||||||||||
| rust | **1** | 1 | | | | | | | | | ||||||||||||||||
| bash | **0** | | | | | | | | | | ||||||||||||||||
| java | **0** | | | | | | | | | | ||||||||||||||||
| php | **0** | | | | | | | | | | ||||||||||||||||
| **Total** | **65** |**12**|**8**|**9**|**10**|**9**|**9**|**5**|**3**| | ||||||||||||||||

*Last updated: 2020-12-09 18:56:00Z*
| Language | Total | 01 | 02 | 03 | 04 | 05 | 06 | 07 | 08 | 09 | 10 |11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|
|-----------|--------|------|-----|-----|------|------|-----|-----|-----|-----|----|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|
| python3 | **18** | 2 | 1 | 3 | 4 | 4 | 3 | 1 | | | ||||||||||||||||
| golang | **13** | 2 | 2 | 2 | 1 | 2 | 2 | 1 | 1 | | ||||||||||||||||
| sml | **8** | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | ||||||||||||||||
| deno.ts | **8** | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | ||||||||||||||||
| c | **6** | 1 | 1 | 1 | 1 | 1 | 1 | | | | ||||||||||||||||
| zig | **5** | 1 | 1 | 1 | 1 | 1 | | | | | ||||||||||||||||
| node.js | **4** | 1 | | | 1 | | 1 | 1 | | | ||||||||||||||||
| c++ | **2** | 1 | 1 | | | | | | | | ||||||||||||||||
| ruby | **2** | 1 | | | 1 | | | | | | ||||||||||||||||
| rust | **1** | 1 | | | | | | | | | ||||||||||||||||
| bash | **0** | | | | | | | | | | ||||||||||||||||
| java | **0** | | | | | | | | | | ||||||||||||||||
| php | **0** | | | | | | | | | | ||||||||||||||||
| **Total** | **68** |**12**|**8**|**9**|**11**|**10**|**9**|**5**|**3**|**1**| ||||||||||||||||

*Last updated: 2020-12-09 21:30:00Z*

See all languages we support in our [Dockerfile](./Dockerfile).

Expand Down Expand Up @@ -85,12 +85,11 @@ If you enjoy working on this project, consider sharing it with your friends. The

## Getting started

### Test a single solution
### Test individual solutions

```
$ cd days/day01
$ ../../languages/rust.sh input.txt output.txt solutions/day01.rs
cat INPUT | rustc day-01/solutions/day01.rs βœ…
$ ./lang/rust.sh "days/day-01/solutions/day01.rs" "days/day-01/io/*"
cat INPUT | rustc day01.rs 662ms βœ…
```

### Test one or more days
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions days/day-00-example/io/bob.input
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1
2
3
4
8
12
3000
28731
2 changes: 2 additions & 0 deletions days/day-00-example/io/bob.output
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
31761
28735
25 changes: 13 additions & 12 deletions days/day-00-example/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 0: Examples ---"
$D/../../languages/rust.sh $D/input.txt $D/output.txt $D/solutions/example.rs
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/example.go
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/example.c
$D/../../languages/cpp.sh $D/input.txt $D/output.txt $D/solutions/example.cpp
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/example.sml
$D/../../languages/bash.sh $D/input.txt $D/output.txt $D/solutions/example.bash
$D/../../languages/php.sh $D/input.txt $D/output.txt $D/solutions/example.php
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/example.py
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/example.ts
$D/../../languages/node.sh $D/input.txt $D/output.txt $D/solutions/example.mjs
$D/../../languages/ruby.sh $D/input.txt $D/output.txt $D/solutions/example.rb
$D/../../languages/java.sh $D/input.txt $D/output.txt $D/solutions Example

$D/../../lang/rust.sh "$D/solutions/*.rs" "$D/io/*"
$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/cpp.sh "$D/solutions/*.cpp" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/bash.sh "$D/solutions/*.bash" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
$D/../../lang/node.sh "$D/solutions/*.mjs" "$D/io/*"
$D/../../lang/ruby.sh "$D/solutions/*.rb" "$D/io/*"
$D/../../lang/php.sh "$D/solutions/*.php" "$D/io/*"

echo ""
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions days/day-01/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 1: Report Repair ---"
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day01.stektpotet.go
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day01.tholok97.go
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/day01.c
$D/../../languages/zig.sh $D/input.txt $D/output.txt $D/solutions/day01.zig
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day01.sml
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day01.ts
$D/../../languages/node.sh $D/input.txt $D/output.txt $D/solutions/day01.mjs
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/one-liner.py
$D/../../languages/cpp.sh $D/input.txt $D/output.txt $D/solutions/day01.cpp
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day01.py
$D/../../languages/rust.sh $D/input.txt $D/output.txt $D/solutions/day01.rs
$D/../../languages/ruby.sh $D/input.txt $D/output.txt $D/solutions/day01.rb

$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/zig.sh "$D/solutions/*.zig" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/node.sh "$D/solutions/*.mjs" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
$D/../../lang/cpp.sh "$D/solutions/*.cpp" "$D/io/*"
$D/../../lang/rust.sh "$D/solutions/*.rs" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/ruby.sh "$D/solutions/*.rb" "$D/io/*"

echo ""
File renamed without changes.
File renamed without changes.
15 changes: 7 additions & 8 deletions days/day-02/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 2: Password Philosophy ---"
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/day02.c
$D/../../languages/zig.sh $D/input.txt $D/output.txt $D/solutions/day02.zig
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day02.stektpotet.go
$D/../../languages/cpp.sh $D/input.txt $D/output.txt $D/solutions/day02.cpp
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day02.sml
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day02.tholok97.go
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day02.py
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day02.ts
$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/zig.sh "$D/solutions/*.zig" "$D/io/*"
$D/../../lang/cpp.sh "$D/solutions/*.cpp" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
echo ""
File renamed without changes.
File renamed without changes.
15 changes: 6 additions & 9 deletions days/day-03/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 3: Counting trees ---"
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/day03.c
$D/../../languages/zig.sh $D/input.txt $D/output.txt $D/solutions/day03.zig
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day03.stektpotet.go
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day03.tholok97.go
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day03.sml
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day03.preng.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/one-liner.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day03.klyve.py
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day03.ts
$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/zig.sh "$D/solutions/*.zig" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
echo ""
File renamed without changes.
File renamed without changes.
21 changes: 10 additions & 11 deletions days/day-04/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ D=$(dirname $(realpath $0))

echo
echo "--- Day 4: Passport Processing ---"
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/day04.c
$D/../../languages/zig.sh $D/input.txt $D/output.txt $D/solutions/day04.zig
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day04.sml
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day04.tholok97.go
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day04.klyve.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day04.preng.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day04.jorgen.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day04.stektpotet.py
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day04.ts
$D/../../languages/node.sh $D/input.txt $D/output.txt $D/solutions/day04.mjs
$D/../../languages/ruby.sh $D/input.txt $D/output.txt $D/solutions/day04.klyve.rb

$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/zig.sh "$D/solutions/*.zig" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
$D/../../lang/node.sh "$D/solutions/*.mjs" "$D/io/*"
$D/../../lang/ruby.sh "$D/solutions/*.rb" "$D/io/*"

echo
File renamed without changes.
File renamed without changes.
17 changes: 7 additions & 10 deletions days/day-05/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,11 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 5: Boarding pass ---"
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/day05.c
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day05.stektpotet.go
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/tholok97.go
$D/../../languages/zig.sh $D/input.txt $D/output.txt $D/solutions/day05.zig
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day05.sml
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day05.stektpotet.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day05.preng.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/one-liner.stektpotet.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day05.klyve.py
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day05.ts

$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/zig.sh "$D/solutions/*.zig" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
echo ""
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion days/day-06/solutions/day06.sml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use "../../../util.sml";
use "../../../lib/util.sml";

fun solve operand =
listSum o List.map (CharSet.size o foldl' operand)
Expand Down
18 changes: 8 additions & 10 deletions days/day-06/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 6: Custom customs ---"
$D/../../languages/c.sh $D/input.txt $D/output.txt $D/solutions/day06.c
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/day06.stektpotet.go
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/tholok97.go
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/one-liner.stektpotet.py
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day06.sml
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/one-liner.stektpotet.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day06.stektpotet.py
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day06.preng.py
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day06.ts
$D/../../languages/node.sh $D/input.txt $D/output.txt $D/solutions/day06.mjs

$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/c.sh "$D/solutions/*.c" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
$D/../../lang/node.sh "$D/solutions/*.mjs" "$D/io/*"

echo ""
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion days/day-07/solutions/day07.sml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use "../../../util.sml";
use "../../../lib/util.sml";

local
structure SS = StringSet
Expand Down
12 changes: 7 additions & 5 deletions days/day-07/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ D=$(dirname $(realpath $0))

echo ""
echo "--- Day 7: Handy Haversacks ---"
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day07.sml
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/tholok97.go
$D/../../languages/python.sh $D/input.txt $D/output.txt $D/solutions/day07.stektpotet.py
$D/../../languages/node.sh $D/input.txt $D/output.txt $D/solutions/day07.mjs
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day07.ts

$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/python.sh "$D/solutions/*.py" "$D/io/*"
$D/../../lang/node.sh "$D/solutions/*.mjs" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"

echo ""
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion days/day-08/solutions/day08.sml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use "../../../util.sml";
use "../../../lib/util.sml";

local
structure IS = IntSet
Expand Down
7 changes: 3 additions & 4 deletions days/day-08/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ set -euo pipefail

D=$(dirname $(realpath $0))


echo ""
echo "--- Day 8: Handheld Halting ---"
$D/../../languages/go.sh $D/input.txt $D/output.txt $D/solutions/tholok97.go
$D/../../languages/sml.sh $D/input.txt $D/output.txt $D/solutions/day08.sml
$D/../../languages/deno.sh $D/input.txt $D/output.txt $D/solutions/day08.ts
$D/../../lang/go.sh "$D/solutions/*.go" "$D/io/*"
$D/../../lang/sml.sh "$D/solutions/*.sml" "$D/io/*"
$D/../../lang/deno.sh "$D/solutions/*.ts" "$D/io/*"
echo ""
File renamed without changes.
File renamed without changes.
Loading