Skip to content

Commit fe6e5a7

Browse files
authored
add @bishabosha solutions (#541)
1 parent 35b7334 commit fe6e5a7

File tree

13 files changed

+14
-3
lines changed

13 files changed

+14
-3
lines changed

docs/2023/puzzles/day03.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ def part2(input: String) =
213213
- [Solution](https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/03.worksheet.sc#L89) by [Spamegg](https://github.com/spamegg1)
214214
- [Solution](https://github.com/prinsniels/AdventOfCode2023/blob/main/src/main/scala/solutions/day03.scala) by [Niels Prins](https://github.com/prinsniels)
215215
- [Solution](https://github.com/Philippus/adventofcode/blob/main/src/main/scala/adventofcode2023/day3/Day3.scala) by [Philippus Baalman](https://github.com/philippus)
216-
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day03.scala) by [Jamie Thompson](https://github.com/bishabosha)
217216
- [Solution](https://github.com/kbielefe/advent-of-code/blob/master/2023/src/main/scala/3.scala) by [Karl Bielefeldt](https://github.com/kbielefe)
218217
- [Solution](https://github.com/mpilquist/aoc/blob/main/2023/day3.sc) by [Michael Pilquist](https://github.com/mpilquist)
219218
- [Solution](https://github.com/nryabykh/aoc2023/blob/master/src/main/scala/Day03.scala) by [Nikolai Riabykh](https://github.com/nryabykh/)

docs/2023/puzzles/day06.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,5 +138,6 @@ end part2
138138
- [Solution](https://github.com/marconilanna/advent-of-code/blob/master/2023/Day06.scala) by [Marconi Lanna](https://github.com/marconilanna)
139139
- [Solution](https://github.com/guycastle/advent_of_code_2023/blob/main/src/main/scala/days/day06/DaySix.scala) by [Guillaume Vandecasteele](https://github.com/guycastle)
140140
- [Solution](https://github.com/Jannyboy11/AdventOfCode2023/blob/master/src/main/scala/day06/Day06.scala) of [Jan Boerman](https://twitter.com/JanBoerman95).
141+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day06.scala) by [Jamie Thompson](https://github.com/bishabosha)
141142

142143
Share your solution to the Scala community by editing this page.

docs/2023/puzzles/day10.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ end part2
189189
- [Solution](https://github.com/mpilquist/aoc/blob/main/2023/day10.sc) by [Michael Pilquist](https://github.com/mpilquist)
190190
- [Solution](https://github.com/jnclt/adventofcode2023/blob/main/day10/pipe-maze.sc) by [jnclt](https://github.com/jnclt)
191191
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task10/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
192+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day10.scala) by [Jamie Thompson](https://github.com/bishabosha)
192193

193194
Share your solution to the Scala community by editing this page.
194195
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day11.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ Here are some ideas that I think would be interesting to look into:
308308
- [Solution](https://github.com/Philippus/adventofcode/blob/main/src/main/scala/adventofcode2023/Day11.scala) by [Philippus Baalman](https://github.com/philippus)
309309
- [Solution](https://github.com/joeledwards/advent-of-code/blob/master/2023/src/main/scala/com/buzuli/advent/days/day11.scala) by [Joel Edwards](https://github.com/joeledwards)
310310
- [Solution](https://github.com/mpilquist/aoc/blob/main/2023/day11.sc) by [Michael Pilquist](https://github.com/mpilquist)
311+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day11.scala) by [Jamie Thompson](https://github.com/bishabosha)
311312

312313
Share your solution to the Scala community by editing this page.
313314
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day12.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@ def unfoldRow(input: String): String =
588588
- [Solution](https://github.com/lenguyenthanh/aoc-2023/blob/main/Day12.scala) by [Thanh Le](https://github.com/lenguyenthanh)
589589
- [Solution](https://github.com/SethTisue/adventofcode/blob/main/2023/src/test/scala/Day12.scala) by [Seth Tisue](https://github.com/SethTisue)
590590
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task12/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
591+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day12.scala) by [Jamie Thompson](https://github.com/bishabosha)
591592

592593
Share your solution to the Scala community by editing this page.
593594
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day13.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,6 @@ def findReflectionWithSmudge(pattern: Pattern): Option[Int] =
126126
- [Solution](https://github.com/jnclt/adventofcode2023/blob/main/day13/point-of-incidence.sc) by [jnclt](https://github.com/jnclt)
127127
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day13.scala) by [merlin](https://github.com/merlinorg/)
128128
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task13/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
129+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day13.scala) by [Jamie Thompson](https://github.com/bishabosha)
129130

130131
Share your solution to the Scala community by editing this page.

docs/2023/puzzles/day14.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ def part2(input: String): Int =
338338
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day14.scala) by [merlin](https://github.com/merlinorg/)
339339
- [Solution](https://github.com/jnclt/adventofcode2023/blob/main/day14/parabolic-reflector-dish.sc) by [jnclt](https://github.com/jnclt)
340340
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task14/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
341+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day14.scala) by [Jamie Thompson](https://github.com/bishabosha)
341342

342343
Share your solution to the Scala community by editing this page.
343344
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day15.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ end part2
207207
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day15.scala) by [Rui Alves](https://github.com/xRuiAlves/)
208208
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task15/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
209209
- [Solution](https://github.com/joeledwards/advent-of-code/blob/master/2023/src/main/scala/com/buzuli/advent/days/day15.scala) by [Joel Edwards](https://github.com/joeledwards)
210+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day15.scala) by [Jamie Thompson](https://github.com/bishabosha)
210211

211212
Share your solution to the Scala community by editing this page.
212213
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day16.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ def part2(input: String) =
476476
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day16.scala) by [Rui Alves](https://github.com/xRuiAlves/)
477477
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day16.scala) by [merlin](https://github.com/merlinorg/)
478478
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task15/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
479+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day16.scala) by [Jamie Thompson](https://github.com/bishabosha)
479480

480481
Share your solution to the Scala community by editing this page.
481482
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day17.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def search(next: StateTransform)(using Grid): Int =
326326
- [Solution](https://github.com/stewSquared/advent-of-code/blob/master/src/main/scala/2023/Day17.worksheet.sc) by [stewSquared](https://github.com/stewSquared)
327327
- [Solution](https://github.com/merlinorg/aoc2023/blob/main/src/main/scala/Day17.scala) by [merlin](https://github.com/merlinorg/)
328328
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day17.scala) by [Rui Alves](https://github.com/xRuiAlves/)
329+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day17.scala) by [Jamie Thompson](https://github.com/bishabosha)
329330

330331
Share your solution to the Scala community by editing this page.
331332
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day18.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ yield Trench(dir, len.toInt)
7575
### Part 2
7676

7777
We do the same for part 2, except we use the color to
78-
get the trench fields:
78+
get the trench fields:
7979
its direction from the last digit,
8080
and its length by converting from the hexadecimal encoding of the remaining digits.
8181

@@ -119,7 +119,7 @@ def part1(input: String): String =
119119
case s"$dirC $len (#$_)" <- input.linesIterator
120120
dir = Direction.fromChar(dirC.head)
121121
yield Trench(dir, len.toInt)
122-
122+
123123
area(digPlan.toSeq).toString
124124

125125
def part2(input: String): String =
@@ -138,6 +138,7 @@ def part2(input: String): String =
138138
- [Solution](https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/18.worksheet.sc#L101) by [Spamegg](https://github.com/spamegg1/)
139139
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day18.scala) by [Rui Alves](https://github.com/xRuiAlves/)
140140
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task18/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
141+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day18.scala) by [Jamie Thompson](https://github.com/bishabosha)
141142

142143
Share your solution to the Scala community by editing this page.
143144
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day19.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def combinations(input: String, until: Long): Long =
234234
- [Solution](https://github.com/spamegg1/advent-of-code-2023-scala/blob/solutions/19.worksheet.sc#L101) by [Spamegg](https://github.com/spamegg1/)
235235
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day19.scala) by [Rui Alves](https://github.com/xRuiAlves/)
236236
- [Solution](https://github.com/GrigoriiBerezin/advent_code_2023/tree/master/task19/src/main/scala) by [g.berezin](https://github.com/GrigoriiBerezin)
237+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day19.scala) by [Jamie Thompson](https://github.com/bishabosha)
237238

238239
Share your solution to the Scala community by editing this page.
239240
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

docs/2023/puzzles/day20.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ def part2(input: String): Long =
629629
## Solutions from the community
630630

631631
- [Solution](https://github.com/xRuiAlves/advent-of-code-2023/blob/main/Day20.scala) by [Rui Alves](https://github.com/xRuiAlves/)
632+
- [Solution](https://github.com/bishabosha/advent-of-code-2023/blob/main/2023-day20.scala) by [Jamie Thompson](https://github.com/bishabosha)
632633

633634
Share your solution to the Scala community by editing this page.
634635
You can even write the whole article! [See here for the expected format](https://github.com/scalacenter/scala-advent-of-code/discussions/424)

0 commit comments

Comments
 (0)