Here is my day7: https://github.com/ostcar/aoc2023/blob/main/days/day07.roc
Spoiler
Here is mine. Did a lot of copy paste for part2 and it does not look so nice, but It was quite nice to implement with the use of dbg.
My solution :blush: Quite happy with the outcome! Feels like I'm starting to learn to think in roc! https://github.com/lindskogen/advent-of-code-2023/blob/main/day07/main.roc
Here's my day 7: https://github.com/ryanb/advent-2023-roc/tree/main/day07
Johan Lindskogen said:
My solution :blush: Quite happy with the outcome! Feels like I'm starting to learn to think in roc! https://github.com/lindskogen/advent-of-code-2023/blob/main/day07/main.roc
Nice solution! I like your handling of tags.
@Ryan Bates you should upgrade to basic-cli
0.7.0, unless you're also running an old (pre december 1st) version of the compiler
https://github.com/roc-lang/basic-cli/releases
@Elias Mulhall thanks, I'll do this. I have been just using the same template I did before Dec 1 but on a newer nightly so can upgrade.
Cool, if you've noticed dbg
not working at all that should fix it
Oskar Hahn said:
Spoiler
Spoiler Reply
https://gitlab.com/AsbjornOlling/aoc2023/-/blob/main/07/main.roc
Back on track!
I got stuck on Day 5 part 2 for yesterday and the day before.
I think I've just dug myself a hole made of confusing code.
Today I decided to screw it and just went on. Solved day 6 and 7 now.
I'm pretty happy with my Day 7. I came up with a pretty nifty way to pattern match hand kinds, that turned out to be easy to extend for part two.
My day 7: https://gist.github.com/ayazhafiz/fd747f93604b103464824175e51591dc
My day 7: https://github.com/timotree3/aoc2023/blob/main/roc/day7.roc
If I keep going at this pace, I'll be done before the advent of code this year. :laughing:
Because I had a logical bug, I wanted to refactor to get some more guarantees to narrow down the search space. This led to a quick trip to opaque-types-land, followed by a visit to refactoring-is-as-nice-as-in-Elm-garden! I love that opaque types have their own syntax!
My solution: https://github.com/Ocupe/advent-of-code-2023/tree/main/day_07
Last updated: Jul 06 2025 at 12:14 UTC