4 votes

Day 24: Crossed Wires

Today's problem description: https://adventofcode.com/2024/day/24

Please post your solutions in your own top-level comment. Here's a template you can copy-paste into your comment to format it nicely, with the code collapsed by default inside an expandable section with syntax highlighting (you can replace python with any of the "short names" listed in this page of supported languages):

<details>
<summary>Part 1</summary>

```python
Your code here.
```

</details>

1 comment

  1. scarecrw
    Link
    This was a fantastic problem for using Pharo! I still don't have a generalized solution to Part 2, but this was a great opportunity to showcase the difference between Pharo and traditional...

    This was a fantastic problem for using Pharo! I still don't have a generalized solution to Part 2, but this was a great opportunity to showcase the difference between Pharo and traditional programming environments. Instead of writing an algorithm to solve, I focused on building objects and tools and just working in the inspector.

    I can't really share this process in a neat way, but here's a screenshot to give a sense of what this looks like during the process: https://i.imgur.com/3Sq9t8E.png

    Once I had a way to inspect the connections, swap outputs, and test the result, actually finding the solutions was fairly trivial: just look for the odd ones out that don't follow the pattern of every other connection.

    Pharo Smalltalk Solution