Commit bf28b80
committed
feat(2018 day-14): eliminate the need to define elves when creating recipes
moves elves to be a property of recipes so a list of elves doesn't have to be manually defined
Breaks calculateXAfterY(x, y, elves), use calculateXAfterY(x, y) instead
Breaks findPattern('XXX', recipes, elves), use findPattern('XXX', recipes) instead
Breakds loopRecipesForElves(elves, recipes, X), use loopRecipesForElves(recipes, 15) instead1 parent b008964 commit bf28b80
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
13 | 10 | | |
14 | | - | |
| 11 | + | |
15 | 12 | | |
16 | 13 | | |
17 | 14 | | |
| |||
0 commit comments